function NodeEditFormTest::testNodeFormNullAuthor
Tests the node form when the author is NULL.
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeEditFormTest.php, line 268
Class
- NodeEditFormTest
- Create a node and test node edit functionality.
Namespace
Drupal\Tests\node\FunctionalCode
public function testNodeFormNullAuthor() : void {
\Drupal::service('module_installer')->install([
'node_no_default_author',
]);
$this->drupalLogin($this->adminUser);
$this->drupalGet('node/add/page');
$this->assertSession()
->statusCodeEquals(200);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.