test backend seed assets

This commit is contained in:
Yisroel Baum 2026-06-03 08:43:54 +03:00
parent 01434a9b2d
commit 6c14e193e0
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -13,6 +13,16 @@ class DemoSeedDataTest extends TestCase
{ {
use RefreshDatabase; use RefreshDatabase;
public function testElementSeederDoesNotReadFrontendAssets(): void
{
$seederSource = file_get_contents(
base_path('database/seeders/ElementSeeder.php'),
);
$this->assertIsString($seederSource);
$this->assertStringNotContainsString('../frontend/', $seederSource);
}
public function testBaderechRootElementHasDemoChildren(): void public function testBaderechRootElementHasDemoChildren(): void
{ {
Storage::fake('public'); Storage::fake('public');