You are here

function LinkitControllerTest::testProfileTitle in Linkit 8.4

Tests the profile route title callback.

File

src/Tests/Controllers/LinkitControllerTest.php, line 42
Contains \Drupal\linkit\Tests\Controllers\LinkitControllerTest.

Class

LinkitControllerTest
Tests Linkit controller.

Namespace

Drupal\linkit\Tests\Controllers

Code

function testProfileTitle() {
  $this
    ->drupalGet(Url::fromRoute('entity.linkit_profile.edit_form', [
    'linkit_profile' => $this->linkitProfile
      ->id(),
  ]));
  $this
    ->assertText('Edit ' . $this->linkitProfile
    ->label() . ' profile');
}