33 lines
829 B
PHP
33 lines
829 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class AdminTopNavSingleOpenDetailsTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
protected function loginAsPlatformAdmin(): void
|
|
{
|
|
$this->seed();
|
|
|
|
$this->post('/admin/login', [
|
|
'email' => 'platform.admin@demo.local',
|
|
'password' => 'Platform@123456',
|
|
])->assertRedirect('/admin');
|
|
}
|
|
|
|
public function test_layout_should_include_single_open_nav_script(): void
|
|
{
|
|
$this->loginAsPlatformAdmin();
|
|
|
|
$this->get('/admin')
|
|
->assertOk()
|
|
->assertSee('data-role="topnav-group"', false)
|
|
->assertSee('data-role="topnav-groups-root"', false)
|
|
->assertSee('data-action="topnav-single-open"', false);
|
|
}
|
|
}
|