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

BaseCoreAdmin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 17
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actor() 0 5 1
A amOnEventEspressoAdminPage() 0 4 1
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
}