set('services.umami.enabled', false); $this->get('https://presseecho.test/de') ->assertSuccessful() ->assertDontSee('sys.adametz.media', false); }); test('the umami snippet renders the website id of the requested brand', function (string $host, string $websiteId) { /** @var TestCase $this */ config()->set('services.umami.enabled', true); // /de/faq existiert auf allen drei Hosts (die Hub-Startseite liegt auf /). $this->get("https://{$host}/de/faq") ->assertSuccessful() ->assertSee('https://sys.adametz.media/config.js', false) ->assertSee('data-website-id="'.$websiteId.'"', false); })->with([ 'presseecho' => ['presseecho.test', '3ea8a7b0-105d-4519-b200-138cadc0fbdc'], 'businessportal24' => ['businessportal24.test', 'f03a5fc3-ac44-488f-9118-84004861099f'], 'pressekonto hub' => ['pressekonto.test', 'ca440b65-a5bd-42c1-8cdb-96f34734003c'], ]);