You are here

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

\Drupal\Core\Entity\EntityStorageException

Overrides FunctionalTestBase::setUp

File

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

Class

NavigationalStructureTest
Test Entity Construction Kit's navigational structure.

Namespace

Drupal\Tests\eck\Functional

Code

public function setUp() {
  parent::setUp();
  $entity_type = $this
    ->createEntityType();
  $this->entityTypeMachineName = $entity_type['id'];
  $this->entityTypeLabel = $entity_type['label'];
  $bundle = $this
    ->createEntityBundle($this->entityTypeMachineName);
  $this->entityBundleMachineName = $bundle['type'];
  $this->entityBundleLabel = $bundle['name'];
  $this
    ->placeBlock('system_breadcrumb_block');
  $this
    ->placeBlock('page_title_block');
}