public function BibciteEntityTest::testSettingsContributorForm 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::testSettingsContributorForm()
Test Settings Contributor form.
File
- modules/
bibcite_entity/ tests/ src/ Functional/ BibciteEntityTest.php, line 405
Class
- BibciteEntityTest
- Test for entity functions.
Namespace
Drupal\Tests\bibcite_entity\FunctionalCode
public function testSettingsContributorForm() {
$this
->drupalLogin($this->user);
$this
->drupalGet('admin/structure/bibcite/contributor/settings');
$page = $this
->getSession()
->getPage();
$this
->assertSession()
->fieldValueEquals('edit-full-name-pattern', '@prefix @first_name @last_name @suffix');
$page
->pressButton('edit-submit');
$this
->assertSession()
->statusCodeEquals(200);
}