public function CustomFilterTest::testAdminPage in Custom filter 8
Test if CustomFilter shows on admin/config.
This test is for https://drupal.org/node/2143991.
File
- src/
Tests/ CustomFilterTest.php, line 232
Class
- CustomFilterTest
- Test the Custom Filter administration and use.
Namespace
Drupal\customfilter\TestsCode
public function testAdminPage() {
$this
->drupalGet('admin/config');
// Assert for module.
$this
->assertRaw('Custom Filter', 'Custom Filter is in admin/config');
// Assert for description.
$this
->assertRaw('Create and manage your own custom filters.', 'Description is in admin/config');
$this
->assertLinkByHref('admin/config/content/customfilter', 0, 'A link to custom filter is on the page.');
}