You are here

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

Tests entity type edit.

@test

File

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

Class

NavigationalStructureTest
Test Entity Construction Kit's navigational structure.

Namespace

Drupal\Tests\eck\Functional

Code

public function entityTypeEdit() {
  $route = 'entity.eck_entity_type.edit_form';
  $routeArguments = [
    'eck_entity_type' => $this->entityTypeMachineName,
  ];
  $expectedUrl = "admin/structure/eck/{$this->entityTypeMachineName}";
  $expectedTitle = 'Edit entity type';
  $crumbs = [
    'Structure',
    'ECK Entity Types',
  ];
  $this
    ->assertCorrectPageOnRoute($route, $routeArguments, $expectedUrl, $expectedTitle, $crumbs);
}