assertSame($names, array_keys($svg), 'resources/icons/svg.php veraltet – npm run icons'); foreach ($names as $name) { $this->assertStringContainsString("'{$name}':", $js, "icons.js ohne „{$name}“ – npm run icons"); $this->assertNotSame('', $svg[$name]); } // Bereits gespeicherte Schnellzugriffe nutzen diese Namen. foreach (['link', 'building-2', 'heart-handshake', 'utensils'] as $legacy) { $this->assertTrue(Icons::has($legacy)); } } public function test_options_are_safe_html_and_searchable(): void { $this->assertStringContainsString('assertArrayHasKey('house', Icons::search('startseite')); $this->assertArrayNotHasKey('house', Icons::search('path'), 'Suche trifft nicht das SVG-Markup'); $this->assertFalse(Icons::has('