public function VapnFunctionalTest::testConfigForm in View access per node 8
Tests that the configuration of the module.
File
- tests/
src/ Functional/ VapnFunctionalTest.php, line 48
Class
- VapnFunctionalTest
- Simple test to ensure the behavior of Vapn module
Namespace
Drupal\Tests\vapn\FunctionalCode
public function testConfigForm() {
$this
->drupalCreateContentType([
'type' => 'page',
]);
$this->editForm = 'admin/config/vapn/vapnconfig';
$form = [
'vapn_node_list[page]' => 1,
];
$this
->drupalPostForm($this->editForm, $form, t('Save configuration'));
$this
->drupalGet('node/add/page');
$this
->assertSession()
->elementExists('css', '#edit-vapn');
}