You are here

public function LibraryAccessTest::testLibraryListing in Layout builder library 8

Tests accessing the library listing.

File

tests/src/Functional/LibraryAccessTest.php, line 38

Class

LibraryAccessTest
Tests accessing the layout library.

Namespace

Drupal\Tests\layout_library\Functional

Code

public function testLibraryListing() {
  $session = $this
    ->assertSession();
  $this
    ->drupalGet('admin/structure/layouts');
  $session
    ->statusCodeEquals('403');
  $this
    ->drupalLogin($this->layoutAdmin);
  $this
    ->drupalGet('admin/structure/layouts');
  $session
    ->statusCodeEquals('200');
}