You are here

function AttributeCrudTest::testOverview in Linkit 8.4

Test the overview page.

File

src/Tests/AttributeCrudTest.php, line 48
Contains \Drupal\linkit\Tests\AttributeCrudTest.

Class

AttributeCrudTest
Tests adding, listing and deleting attributes on a profile.

Namespace

Drupal\linkit\Tests

Code

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