|
@@ 146-153 (lines=8) @@
|
| 143 |
|
* @Then I should see the :plugin_id plugin |
| 144 |
|
* @Then I should see the :plugin_id plugin in the :category category |
| 145 |
|
*/ |
| 146 |
|
public function assertBlockPluginExists($plugin_id, $category = NULL) { |
| 147 |
|
return $this->assertSession() |
| 148 |
|
->elementExists( |
| 149 |
|
'css', |
| 150 |
|
'.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
| 151 |
|
$category ? $this->openCategory($category) : $this->getActiveTab() |
| 152 |
|
); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
/** |
| 156 |
|
* Asserts that a particular block plugin is not available. |
|
@@ 166-173 (lines=8) @@
|
| 163 |
|
* @Then I should not see the :plugin_id plugin |
| 164 |
|
* @Then I should not see the :plugin_id plugin in the :category category |
| 165 |
|
*/ |
| 166 |
|
public function assertBlockPluginNotExists($plugin_id, $category = NULL) { |
| 167 |
|
$this->assertSession() |
| 168 |
|
->elementNotExists( |
| 169 |
|
'css', |
| 170 |
|
'.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
| 171 |
|
$category ? $this->openCategory($category) : $this->getActiveTab() |
| 172 |
|
); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
/** |
| 176 |
|
* Instantiates a block plugin. |