function SharerichTests::testLinkToConfig in Sharerich 8
File
- tests/
src/ Functional/ SharerichTests.php, line 91
Class
- SharerichTests
- Sharerich tests.
Namespace
Drupal\Tests\sharerich\FunctionalCode
function testLinkToConfig() {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet('admin/modules');
$link = $this
->xpath('//a[contains(@href, :href) and contains(@id, :id)]', [
':href' => 'admin/structure/sharerich',
':id' => 'edit-modules-sharerich-links-configure',
]);
$this
->assertTrue(count($link) === 1, 'Link to config is present');
}