public function ViewsNoResultsBehaviorTest::testDuplicateText in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Functional/ViewsNoResultsBehaviorTest.php \Drupal\Tests\views\Functional\ViewsNoResultsBehaviorTest::testDuplicateText()
- 10 core/modules/views/tests/src/Functional/ViewsNoResultsBehaviorTest.php \Drupal\Tests\views\Functional\ViewsNoResultsBehaviorTest::testDuplicateText()
Tests the view with the text.
File
- core/
modules/ views/ tests/ src/ Functional/ ViewsNoResultsBehaviorTest.php, line 43
Class
- ViewsNoResultsBehaviorTest
- Tests no results behavior.
Namespace
Drupal\Tests\views\FunctionalCode
public function testDuplicateText() {
$output = $this
->drupalGet('admin/content');
$this
->assertEqual(1, substr_count($output, 'No content available.'), 'Only one message should be present');
}