24 lines
716 B
PHP
24 lines
716 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class AdminBaseCssShouldDefineFormGridLayoutTest extends TestCase
|
|
{
|
|
public function test_admin_base_css_defines_form_grid_layout(): void
|
|
{
|
|
$path = public_path('css/admin-base.css');
|
|
$this->assertFileExists($path);
|
|
|
|
$css = file_get_contents($path);
|
|
$this->assertIsString($css);
|
|
|
|
// Guardrail: form pages rely on a unified grid layout.
|
|
$this->assertStringContainsString('.form-grid{', $css);
|
|
$this->assertStringContainsString('display:grid', $css);
|
|
$this->assertStringContainsString('grid-template-columns', $css);
|
|
$this->assertStringContainsString('.form-grid .full', $css);
|
|
}
|
|
}
|