public function BibciteEntityTest::testSettingsReferenceForm in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/tests/src/Functional/BibciteEntityTest.php \Drupal\Tests\bibcite_entity\Functional\BibciteEntityTest::testSettingsReferenceForm()
Test Settings Reference form.
File
- modules/
bibcite_entity/ tests/ src/ Functional/ BibciteEntityTest.php, line 370
Class
- BibciteEntityTest
- Test for entity functions.
Namespace
Drupal\Tests\bibcite_entity\FunctionalCode
public function testSettingsReferenceForm() {
$this
->drupalLogin($this->user);
$this
->drupalGet('admin/structure/bibcite/reference/settings');
$page = $this
->getSession()
->getPage();
$page
->selectFieldOption('edit-view-mode-reference-page-view-mode', 'citation');
$page
->selectFieldOption('edit-view-mode-reference-page-view-mode', 'table');
$page
->selectFieldOption('edit-view-mode-reference-page-view-mode', 'default');
$page
->uncheckField('edit-ui-override-enable-form-override');
$page
->checkField('edit-ui-override-enable-form-override');
$page
->pressButton('edit-submit');
$this
->assertSession()
->statusCodeEquals(200);
}