You are here

public function DisabledNodeTypesTest::testEntityInsertWithDisabledResource in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x modules/gatsby_fastbuilds/tests/src/Kernel/DisabledNodeTypesTest.php \Drupal\Tests\gatsby_fastbuilds\Kernel\DisabledNodeTypesTest::testEntityInsertWithDisabledResource()

Tests entity insert.

File

modules/gatsby_fastbuilds/tests/src/Kernel/DisabledNodeTypesTest.php, line 99

Class

DisabledNodeTypesTest
Defines a test for fastbuilds with disabled node-types.

Namespace

Drupal\Tests\gatsby_fastbuilds\Kernel

Code

public function testEntityInsertWithDisabledResource() {
  $entity = Node::create([
    'type' => 'article',
    'status' => 1,
    'title' => 'foo',
  ]);
  $entity
    ->save();
}