You are here

protected function NullifyQueueIdTest::createNodeType in Acquia Content Hub 8.2

Creates sample node types.

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to NullifyQueueIdTest::createNodeType()
NullifyQueueIdTest::setUp in tests/src/Kernel/NullifyQueueIdTest.php

File

tests/src/Kernel/NullifyQueueIdTest.php, line 235

Class

NullifyQueueIdTest
Tests the NullifyQueueId class.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

protected function createNodeType() {

  // Create the node bundle required for testing.
  $type = NodeType::create([
    'type' => self::BUNDLE,
    'name' => self::BUNDLE,
  ]);
  $type
    ->save();
}