mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Update PageTest.php
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Filament\Facades\Filament;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Tests\Panels\Fixtures\Pages\Settings;
|
||||
use Filament\Tests\Panels\Pages\TestCase;
|
||||
use Illuminate\Support\HtmlString;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
|
||||
use function Filament\Tests\livewire;
|
||||
@@ -37,13 +35,3 @@ it('can report validation errors', function () {
|
||||
->assertHasErrors(['name' => ['required']])
|
||||
->assertNotified();
|
||||
});
|
||||
|
||||
it('strips html tags from brand name in title tag', function () {
|
||||
$htmlBrandName = '<span>Filament <i>HTML Title</i></span>';
|
||||
|
||||
Filament::getCurrentPanel()->brandName(new HtmlString($htmlBrandName));
|
||||
|
||||
$this->get(Settings::getUrl())
|
||||
->assertSee('Filament HTML Title')
|
||||
->assertDontSee($htmlBrandName);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user