public function DomainAccessEntityCrudTest::testUserUpdateWithInstalledDomainAccessFields in Domain Access 8
Tests user update with installed domain access fields.
File
- domain_access/
tests/ src/ Kernel/ DomainAccessEntityCrudTest.php, line 150
Class
- DomainAccessEntityCrudTest
- Tests creation of nodes and users before and after deleting required fields.
Namespace
Drupal\Tests\domain_access\KernelCode
public function testUserUpdateWithInstalledDomainAccessFields() {
$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());
}