AdminToolbarTest.php in Thunder 8.3
File
tests/src/Functional/Integration/AdminToolbarTest.php
View source
<?php
namespace Drupal\Tests\thunder\Functional\Integration;
use Drupal\Tests\thunder\Functional\ThunderTestBase;
class AdminToolbarTest extends ThunderTestBase {
public function testEmptyMenuEntriesAreGone() {
$this
->logWithRole('seo');
$this
->assertSession()
->elementNotExists('css', 'nav a[href="/admin/config/people"]');
$this
->assertSession()
->elementNotExists('css', 'nav a[href="/admin/config/system"]');
$this
->assertSession()
->elementNotExists('css', 'nav a[href="/admin/config/content"]');
$this
->assertSession()
->elementNotExists('css', 'nav a[href="/admin/config/development"]');
$this
->assertSession()
->elementNotExists('css', 'nav a[href="/admin/config/media"]');
$this
->assertSession()
->elementExists('css', 'nav a[href="/admin/config/search"]');
}
}