SubjectStorer example


class SubjectStorerTest extends TestCase
{
    private SubjectStorer $storer;

    protected function setUp(): void
    {
        Feature::skipTestIfActive('v6.6.0.0', $this);
        $this->storer = new SubjectStorer();
    }

    public function testStoreWithAware(): void
    {
        $event = $this->createMock(MailSentEvent::class);
        $stored = [];
        $stored = $this->storer->store($event$stored);
        static::assertArrayHasKey(SubjectAware::SUBJECT, $stored);
    }

    public function testStoreWithNotAware(): void
    {
Home | Imprint | This part of the site doesn't use cookies.