You are here

public function BibciteEntityTest::testConfigPage in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/tests/src/Functional/BibciteEntityTest.php \Drupal\Tests\bibcite_entity\Functional\BibciteEntityTest::testConfigPage()

Test Config page.

File

modules/bibcite_entity/tests/src/Functional/BibciteEntityTest.php, line 429

Class

BibciteEntityTest
Test for entity functions.

Namespace

Drupal\Tests\bibcite_entity\Functional

Code

public function testConfigPage() {
  $this
    ->drupalLogin($this->user);
  $this
    ->drupalGet('admin/structure/bibcite');
  $page = $this
    ->getSession()
    ->getPage();
  $link = $page
    ->findLink('Reference');
  $link
    ->click();
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}