You are here

public function LinkitControllerTest::testProfileTitle in Linkit 8.5

Tests the profile route title callback.

File

tests/src/Functional/Controller/LinkitControllerTest.php, line 36

Class

LinkitControllerTest
Tests Linkit controller.

Namespace

Drupal\Tests\linkit\Functional\Controller

Code

public function testProfileTitle() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('/admin/config/content/linkit/manage/' . $this->linkitProfile
    ->id());
  $this
    ->assertSession()
    ->pageTextContains('Edit ' . $this->linkitProfile
    ->label() . ' profile');
}