|
@@ 126-133 (lines=8) @@
|
| 123 |
|
* @Then I should see the :plugin_id plugin |
| 124 |
|
* @Then I should see the :plugin_id plugin in the :category category |
| 125 |
|
*/ |
| 126 |
|
public function assertBlockPluginExists($plugin_id, $category = NULL) { |
| 127 |
|
return $this->assertSession() |
| 128 |
|
->elementExists( |
| 129 |
|
'css', |
| 130 |
|
'.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
| 131 |
|
$category ? $this->openCategory($category) : $this->getActiveTab() |
| 132 |
|
); |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
/** |
| 136 |
|
* Asserts that a particular block plugin is not available. |
|
@@ 146-153 (lines=8) @@
|
| 143 |
|
* @Then I should not see the :plugin_id plugin |
| 144 |
|
* @Then I should not see the :plugin_id plugin in the :category category |
| 145 |
|
*/ |
| 146 |
|
public function assertBlockPluginNotExists($plugin_id, $category = NULL) { |
| 147 |
|
$this->assertSession() |
| 148 |
|
->elementNotExists( |
| 149 |
|
'css', |
| 150 |
|
'.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
| 151 |
|
$category ? $this->openCategory($category) : $this->getActiveTab() |
| 152 |
|
); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
/** |
| 156 |
|
* Instantiates a block plugin. |