public function DomainAccessEntityCrudTest::testNodeUpdateWithInstalledDomainAccessFields in Domain Access 8
Tests node update with installed domain access fields.
File
- domain_access/tests/ src/ Kernel/ DomainAccessEntityCrudTest.php, line 99 
Class
- DomainAccessEntityCrudTest
- Tests creation of nodes and users before and after deleting required fields.
Namespace
Drupal\Tests\domain_access\KernelCode
public function testNodeUpdateWithInstalledDomainAccessFields() {
  $node = $this
    ->drupalCreateNode();
  $node
    ->save();
  self::assertNotEmpty($node
    ->id());
  $new_title = $this
    ->randomMachineName(8);
  $node
    ->setTitle($new_title);
  $node
    ->save();
  self::assertSame($new_title, $node
    ->getTitle());
}