You are here

public function DomainAccessEntityCrudTest::testNodeCreateWithUninstalledDomainAccessFields in Domain Access 8

Tests node creation with uninstalled domain access fields.

File

domain_access/tests/src/Kernel/DomainAccessEntityCrudTest.php, line 88

Class

DomainAccessEntityCrudTest
Tests creation of nodes and users before and after deleting required fields.

Namespace

Drupal\Tests\domain_access\Kernel

Code

public function testNodeCreateWithUninstalledDomainAccessFields() {
  $this
    ->deleteDomainAccessFields('node', 'page');
  $node = $this
    ->drupalCreateNode();
  $node
    ->save();
  self::assertNotEmpty($node
    ->id());
}