You are here

public function NavigationalStructureTest::entityList in Entity Construction Kit (ECK) 8

Tests the entity listing page.

@test

File

tests/src/Functional/NavigationalStructureTest.php, line 445

Class

NavigationalStructureTest
Test Entity Construction Kit's navigational structure.

Namespace

Drupal\Tests\eck\Functional

Code

public function entityList() {
  $route = "eck.entity.{$this->entityTypeMachineName}.list";
  $routeArguments = [];
  $expectedUrl = "admin/content/{$this->entityTypeMachineName}";
  $expectedTitle = ucfirst("{$this->entityTypeLabel} content");
  $crumbs = [
    'Content',
  ];
  $this
    ->assertCorrectPageOnRoute($route, $routeArguments, $expectedUrl, $expectedTitle, $crumbs);
}