public function PathologicUITest::doTestFixUrl in Pathologic 8
Test that a url is fixed with pathologic.
1 call to PathologicUITest::doTestFixUrl()
- PathologicUITest::testPathologicUi in tests/
src/ Functional/ PathologicUITest.php - Tests for the Pathologic UI.
File
- tests/
src/ Functional/ PathologicUITest.php, line 98
Class
- PathologicUITest
- Tests for the Pathologic UI.
Namespace
Drupal\Tests\pathologic\FunctionalCode
public function doTestFixUrl() {
$this
->drupalGet('node/add/page');
$edit = [
'title[0][value]' => 'Test pathologic',
'body[0][value]' => '<a href="node/1">Test link</a>',
];
$this
->drupalPostForm('node/add/page', $edit, t('Save'));
// Assert that the link is processed with Pathologic.
$this
->clickLink('Test link');
$this
->assertTitle('Test pathologic | Drupal');
}