function SharerichTest::testLinkToConfig in Sharerich 7.3
Same name and namespace in other branches
- 7.2 tests/sharerich.test \SharerichTest::testLinkToConfig()
File
- tests/
sharerich.test, line 96
Class
- SharerichTest
- Sharerich tests.
Code
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/settings',
':id' => 'edit-modules-sharing-sharerich-links-configure',
]);
$this
->assertTrue(count($link) === 1, 'Link to config is present');
}