private function ModerationDashboardTest::assertBlock in Lightning Workflow 8.3
Asserts the presence of a particular block by its plugin ID.
Parameters
string $plugin_id: The block plugin ID.
Return value
\Behat\Mink\Element\ElementInterface The block element.
1 call to ModerationDashboardTest::assertBlock()
- ModerationDashboardTest::testModerationDashboard in tests/
src/ Functional/ ModerationDashboardTest.php - Tests basic functionality of Moderation Dashboard.
File
- tests/
src/ Functional/ ModerationDashboardTest.php, line 77
Class
- ModerationDashboardTest
- Tests Lightning Workflow's integration with Moderation Dashboard.
Namespace
Drupal\Tests\lightning_workflow\FunctionalCode
private function assertBlock($plugin_id) {
return $this
->assertSession()
->elementExists('css', '[data-block-plugin-id="' . $plugin_id . '"]');
}