1 | <?php |
||
13 | trait BaseCoreAdmin |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Core method for going to an Event Espresso Admin page. |
||
18 | * @param string $page |
||
19 | * @param string $action |
||
20 | * @param string $additional_params |
||
21 | */ |
||
22 | public function amOnEventEspressoAdminPage($page = '', $action = '', $additional_params = '') |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Helper method for returning an instance of the Actor. Intended to help with IDE fill out of methods. |
||
30 | * @return \EventEspressoAcceptanceTester; |
||
31 | */ |
||
32 | protected function actor() |
||
37 | |||
38 | |||
39 | /** |
||
40 | * Use this to set the per page option for a list table page. |
||
41 | * Assumes you are on a page that has this field exposed. |
||
42 | * |
||
43 | * @param int|string $per_page_value |
||
44 | * @throws \Codeception\Exception\TestRuntimeException |
||
45 | */ |
||
46 | public function setPerPageOptionForScreen($per_page_value) |
||
53 | |||
54 | |||
55 | |||
56 | /** |
||
57 | * Use this to append a given value to a wpEditor instance. |
||
58 | * How it works is it first switched the instance to the text (or html) view so that the textarea is exposed and |
||
59 | * the value is added to the text area. |
||
60 | * |
||
61 | * @param $field_reference |
||
62 | * @param $value |
||
63 | * @throws \Codeception\Exception\ElementNotFound |
||
64 | */ |
||
65 | public function appendToWPEditorField($field_reference, $value) |
||
70 | |||
71 | |||
72 | /** |
||
73 | * Use to select and submit the given bulk action. |
||
74 | * @param string $bulk_action_option |
||
75 | */ |
||
76 | public function submitBulkActionOnListTable($bulk_action_option) |
||
84 | } |
||
85 |