25 lines
716 B
PHP
25 lines
716 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class FrontPlatformPagesUseExternalCssTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
public function test_platform_pages_should_link_platform_css_and_not_inline_style_block(): void
|
|
{
|
|
$res1 = $this->get('/platform');
|
|
$res1->assertOk();
|
|
$res1->assertSee('<link rel="stylesheet" href="/css/platform.css">', false);
|
|
$res1->assertDontSee('<style>', false);
|
|
|
|
$res2 = $this->get('/platform/plans');
|
|
$res2->assertOk();
|
|
$res2->assertSee('<link rel="stylesheet" href="/css/platform.css">', false);
|
|
$res2->assertDontSee('<style>', false);
|
|
}
|
|
}
|