public function BibciteTest::testSettingsBibciteForm in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/BibciteTest.php \Drupal\Tests\bibcite\Functional\BibciteTest::testSettingsBibciteForm()
Test Settings form.
File
- tests/
src/ Functional/ BibciteTest.php, line 98
Class
- BibciteTest
- Test for main module functions.
Namespace
Drupal\Tests\bibcite\FunctionalCode
public function testSettingsBibciteForm() {
$this
->drupalLogin($this->user);
$this
->drupalGet('admin/config/bibcite');
$page = $this
->getSession()
->getPage();
$page
->selectFieldOption('edit-processor', 'citeproc-php');
$page
->selectFieldOption('edit-default-style', 'apa');
$page
->pressButton('edit-submit');
$this
->assertSession()
->statusCodeEquals(200);
}