You are here

public function MatcherAdminTest::testOverview in Linkit 8.5

Test the overview page.

File

tests/src/Functional/MatcherAdminTest.php, line 47

Class

MatcherAdminTest
Tests adding, listing, updating and deleting matchers on a profile.

Namespace

Drupal\Tests\linkit\Functional

Code

public function testOverview() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('/admin/config/content/linkit/manage/' . $this->linkitProfile
    ->id() . '/matchers');
  $this
    ->assertSession()
    ->pageTextContains('No matchers added.');

  // Make sure the 'Add matcher' action link is present.
  $this
    ->assertSession()
    ->linkByHrefExists('/admin/config/content/linkit/manage/' . $this->linkitProfile
    ->id() . '/matchers/add');
}