fix: remove automatically appended footer legal links (1.8.1)
CMS quality / php (8.2) (push) Canceled after 0s
CMS quality / php (8.4) (push) Canceled after 0s
CMS quality / browser (push) Canceled after 0s
CMS quality / mysql (push) Canceled after 0s

This commit is contained in:
kantarci committed 2026-09-14 12:30:34 +02:00
1 parent ab86312e87
commit 8f475d1374
12 files changed
+40 -62

No files matched your search

+4 -4
View File
@@ -718,7 +718,7 @@ final class EditorSecurityTest extends WebTestCase
self::assertResponseRedirects('/admin/media?q=0');
}
public function testTheMandatoryLegalPagesAreCreatedPublishedAndLinkedEverywhere(): void
public function testLegalPagesCanBeCreatedWithoutInjectingFooterLinks(): void
{
$client = $this->login('editor');
$crawler = $client->request('GET', '/admin/settings');
@@ -745,11 +745,11 @@ final class EditorSecurityTest extends WebTestCase
self::assertStringContainsString('NOCH AUSZUFÜLLEN', $client->getResponse()->getContent());
}
// And they are linked from an ordinary page, without anyone editing the footer.
// Creating the pages does not alter the author's footer or append a link bar.
$client->request('GET', '/');
$content = $client->getResponse()->getContent();
self::assertStringContainsString('<a href="/datenschutz">Datenschutz</a>', $content);
self::assertStringContainsString('<a href="/impressum">Impressum</a>', $content);
self::assertStringNotContainsString('<a href="/datenschutz">Datenschutz</a>', $content);
self::assertStringNotContainsString('<a href="/impressum">Impressum</a>', $content);
// Running it twice keeps the existing pages: they may already carry the real text.
$before = $this->db->fetchOne('SELECT COUNT(*) FROM revision');