UrlStorer example


class UrlStorerTest extends TestCase
{
    private UrlStorer $storer;

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

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

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