public function NavigationalStructureTest::entityBundleAdd in Entity Construction Kit (ECK) 8
Tests entity bundle creation.
@test
File
- tests/
src/ Functional/ NavigationalStructureTest.php, line 597
Class
- NavigationalStructureTest
- Test Entity Construction Kit's navigational structure.
Namespace
Drupal\Tests\eck\FunctionalCode
public function entityBundleAdd() {
$route = "eck.entity.{$this->entityTypeMachineName}_type.add";
$routeArguments = [];
$expectedUrl = "admin/structure/eck/{$this->entityTypeMachineName}/bundles/add";
$expectedTitle = "Add {$this->entityTypeLabel} bundle";
$crumbs = [
'Structure',
'ECK Entity Types',
"Edit entity type",
ucfirst("{$this->entityTypeLabel} bundles"),
];
$this
->assertCorrectPageOnRoute($route, $routeArguments, $expectedUrl, $expectedTitle, $crumbs);
}