You are here

public function BibciteTest::testSettingsBibciteForm in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x 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\Functional

Code

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);
}