public function DisabledNodeTypesTest::testEntityInsertWithDisabledResource in Gatsby Live Preview & Incremental Builds 2.0.x
Same name and namespace in other branches
- 8 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\KernelCode
public function testEntityInsertWithDisabledResource() {
$entity = Node::create([
'type' => 'article',
'status' => 1,
'title' => 'foo',
]);
$entity
->save();
}