public function WebformNodeBrowserTestBaseTest::testWebformNodeBase in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_node/tests/src/Functional/WebformNodeBrowserTestBaseTest.php \Drupal\Tests\webform_node\Functional\WebformNodeBrowserTestBaseTest::testWebformNodeBase()
Test base helper methods.
File
- modules/
webform_node/ tests/ src/ Functional/ WebformNodeBrowserTestBaseTest.php, line 15
Class
- WebformNodeBrowserTestBaseTest
- Test the webform node test base class.
Namespace
Drupal\Tests\webform_node\FunctionalCode
public function testWebformNodeBase() {
$this
->drupalLogin($this->rootUser);
// Check WebformNodeBrowserTestBase::createWebformNode.
$node = $this
->createWebformNode('contact');
$this
->assertEquals('contact', $node->webform->target_id);
// Check WebformNodeBrowserTestBase::postNodeSubmissionTest.
$sid = $this
->postNodeSubmissionTest($node);
$this
->assertEquals(1, $sid);
}