1 | <?php |
||
13 | class EntityContext extends RawDrupalContext implements TranslatableContext |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Returns list of definition translation resources paths. |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | public static function getTranslationResources() |
||
25 | |||
26 | /** |
||
27 | * @Given I am viewing a/an :entity_type entity/item with the :label_name :label |
||
28 | * @Given I am viewing a/an :bundle :entity_type entity/item with the :label_name :label |
||
29 | */ |
||
30 | public function createEntity($entity_type, $bundle = NULL, $label_name, $label) |
||
41 | |||
42 | /** |
||
43 | * Creates content of a given type provided in the form: |
||
44 | * | title | author | status | created | |
||
45 | * | My title | Joe Editor | 1 | 2014-10-17 8:00am | |
||
46 | * | ... | ... | ... | ... | |
||
47 | * |
||
48 | * @Given a/an :entity_type entity/item: |
||
49 | * @Given :entity_type entities/items: |
||
50 | * @Given a/an :bundle :entity_type entity/item: |
||
51 | * @Given :bundle :entity_type entities/items: |
||
52 | */ |
||
53 | public function createEntities($entity_type, $bundle = NULL, TableNode $entitiesTable) |
||
61 | |||
62 | /** |
||
63 | * Creates content of the given type, provided in the form: |
||
64 | * | title | My entity | |
||
65 | * | Field One | My field value | |
||
66 | * | author | Joe Editor | |
||
67 | * | status | 1 | |
||
68 | * | ... | ... | |
||
69 | * |
||
70 | * @Given I am viewing a/an :entity_type entity/item: |
||
71 | * @Given I am viewing a/an :bundle :entity_type entity/item: |
||
72 | */ |
||
73 | public function assertViewingEntity($entity_type, $bundle = NULL, TableNode $fields) |
||
87 | |||
88 | } |
||
89 | |||
90 |