You are here

private function EnqueueFormTest::createTestContent in Warmer 8

Same name and namespace in other branches
  1. 2.x modules/warmer_entity/tests/src/Functional/EnqueueFormTest.php \Drupal\Tests\warmer_entity\Functional\EnqueueFormTest::createTestContent()

Creates test content for richer testing.

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to EnqueueFormTest::createTestContent()
EnqueueFormTest::testEnqueueForm in modules/warmer_entity/tests/src/Functional/EnqueueFormTest.php
Asserts the enqueue form functionality.

File

modules/warmer_entity/tests/src/Functional/EnqueueFormTest.php, line 84

Class

EnqueueFormTest
Functional test for the form enqueue functionality.

Namespace

Drupal\Tests\warmer_entity\Functional

Code

private function createTestContent() {
  Node::create([
    'type' => 'article',
    'title' => 'Test Article 1',
    'status' => NodeInterface::PUBLISHED,
  ])
    ->save();
}