Completed
Branch FET-3467-waitlists (78124b)
by
unknown
141:27 queued 128:30
created

BaseCoreAdmin::actor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
namespace EventEspresso\Codeception\helpers;
3
4
use Page\CoreAdmin;
5
6
/**
7
 * Trait BaseCoreAdmin
8
 * Contains actions for more generic EE Admin page navigation.  Generally speaking it is preferable to create a helper
9
 * specific to an EE admin page you want actions for, but this is provided for quicker setup as necessary.
10
 *
11
 * @package EventEspresso\Codeception\helpers
12
 */
13
trait BaseCoreAdmin
14
{
15
    public function amOnEventEspressoAdminPage($page = '', $action = '', $additional_params = '')
16
    {
17
        $this->actor()->amOnAdminPage(CoreAdmin::adminUrl($page, $action, $additional_params));
18
    }
19
20
21
    /**
22
     * @return \EventEspressoAcceptanceTester;
23
     */
24
    protected function actor()
25
    {
26
        /** @var \EventEspressoAcceptanceTester $this */
27
        return $this;
28
    }
29
}