You are here

function MatcherCrudTest::testOverview in Linkit 8.4

Test the overview page.

File

src/Tests/MatcherCrudTest.php, line 47
Contains \Drupal\linkit\Tests\MatcherCrudTest.

Class

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

Namespace

Drupal\linkit\Tests

Code

function testOverview() {
  $this
    ->drupalGet(Url::fromRoute('linkit.matchers', [
    'linkit_profile' => $this->linkitProfile
      ->id(),
  ]));
  $this
    ->assertText(t('No matchers added.'));
  $this
    ->assertLinkByHref(Url::fromRoute('linkit.matcher.add', [
    'linkit_profile' => $this->linkitProfile
      ->id(),
  ])
    ->toString());
}