function NodeEditFormTest::testNodeFormNullAuthor
Same name and namespace in other branches
- 11.x core/modules/node/tests/src/Functional/NodeEditFormTest.php \Drupal\Tests\node\Functional\NodeEditFormTest::testNodeFormNullAuthor()
Tests the node form when the author is NULL.
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeEditFormTest.php, line 282
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.