| @@ 264-271 (lines=8) @@ | ||
| 261 | /** |
|
| 262 | * {@inheritdoc} |
|
| 263 | */ |
|
| 264 | public function createEntity($entity_type, \StdClass $entity) { |
|
| 265 | $options = array( |
|
| 266 | 'entity_type' => $entity_type, |
|
| 267 | 'entity' => $entity, |
|
| 268 | ); |
|
| 269 | $result = $this->drush('behat', array('create-entity', escapeshellarg(json_encode($options))), array()); |
|
| 270 | return $this->decodeJsonObject($result); |
|
| 271 | } |
|
| 272 | ||
| 273 | /** |
|
| 274 | * {@inheritdoc} |
|
| @@ 276-282 (lines=7) @@ | ||
| 273 | /** |
|
| 274 | * {@inheritdoc} |
|
| 275 | */ |
|
| 276 | public function entityDelete($entity_type, \StdClass $entity) { |
|
| 277 | $options = array( |
|
| 278 | 'entity_type' => $entity_type, |
|
| 279 | 'entity' => $entity, |
|
| 280 | ); |
|
| 281 | $this->drush('behat', array('delete-entity', escapeshellarg(json_encode($options))), array()); |
|
| 282 | } |
|
| 283 | ||
| 284 | /** |
|
| 285 | * {@inheritdoc} |
|