protected function WorkspaceTestUtilities::isLabelInContentOverview in Workspace 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/WorkspaceTestUtilities.php \Drupal\Tests\workspace\Functional\WorkspaceTestUtilities::isLabelInContentOverview()
Determine if the content list has an entity's label.
This assertion can be used to validate a particular entity exists in the current workspace.
2 calls to WorkspaceTestUtilities::isLabelInContentOverview()
- ReplicationSettingsTest::testPullReplicationSettings in tests/
src/ Functional/ ReplicationSettingsTest.php - Verify pull replication settings using the published filter as an example.
- ReplicationSettingsTest::testPushReplicationSettings in tests/
src/ Functional/ ReplicationSettingsTest.php - Verify push replication settings using the published filter as an example.
File
- tests/
src/ Functional/ WorkspaceTestUtilities.php, line 199
Class
- WorkspaceTestUtilities
- Utility methods for use in BrowserTestBase tests.
Namespace
Drupal\Tests\workspace\FunctionalCode
protected function isLabelInContentOverview($label) {
$this
->drupalGet('/admin/content');
$session = $this
->getSession();
$this
->assertSession()
->statusCodeEquals(200);
$page = $session
->getPage();
return $page
->hasContent($label);
}