You are here

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

Tests entity bundle editing.

@test

File

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

Class

NavigationalStructureTest
Test Entity Construction Kit's navigational structure.

Namespace

Drupal\Tests\eck\Functional

Code

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