public function LinkitControllerTest::testMatcherTitle in Linkit 8.5
Tests the matcher route title callback.
File
- tests/
src/ Functional/ Controller/ LinkitControllerTest.php, line 47
Class
- LinkitControllerTest
- Tests Linkit controller.
Namespace
Drupal\Tests\linkit\Functional\ControllerCode
public function testMatcherTitle() {
$this
->drupalLogin($this->adminUser);
/** @var \Drupal\linkit\MatcherInterface $plugin */
$plugin = $this->container
->get('plugin.manager.linkit.matcher')
->createInstance('configurable_dummy_matcher');
$matcher_uuid = $this->linkitProfile
->addMatcher($plugin
->getConfiguration());
$this->linkitProfile
->save();
$this
->drupalGet('/admin/config/content/linkit/manage/' . $this->linkitProfile
->id() . '/matchers/' . $matcher_uuid);
$this
->assertSession()
->pageTextContains('Edit ' . $plugin
->getLabel() . ' matcher');
}