public function AutoEntityLabelTest::testDisabledOption in Automatic Entity Label 8.3
Tests node creation with disabled settings.
File
- tests/
src/ Kernel/ AutoEntityLabelTest.php, line 68
Class
- AutoEntityLabelTest
- Tests for auto entity label.
Namespace
Drupal\Tests\auto_entitylabel\KernelCode
public function testDisabledOption() {
$this
->setConfiguration([
'status' => AutoEntityLabelManager::DISABLED,
]);
$user = $this
->createUser();
$title = 'Test Node';
$node = $this
->createNode([
'title' => $title,
'uid' => $user
->id(),
'type' => $this->nodeType
->id(),
]);
$this
->assertEquals($title, $node
->getTitle(), 'The title is untouched.');
}