Completed
Pull Request — master (#1)
by Daryl
01:30
created

WpunitTesterActions   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 55
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A bootstrapActions() 0 2 1
A loadPlugins() 0 2 1
A factory() 0 2 1
A activatePlugins() 0 2 1
1
<?php  //[STAMP] e18186f2cd4f489473a5d89034eb2d79
2
namespace _generated;
3
4
// This class was automatically generated by build task
5
// You should not change it manually as it will be overwritten on next build
6
// @codingStandardsIgnoreFile
7
8
use Codeception\Module\WPLoader;
9
use Helper\Wpunit;
10
11
trait WpunitTesterActions
12
{
13
    /**
14
     * @return \Codeception\Scenario
15
     */
16
    abstract protected function getScenario();
17
18
    
19
    /**
20
     * [!] Method is generated. Documentation taken from corresponding module.
21
     *
22
     * Calls a list of user-defined actions needed in tests.
23
     * @see \Codeception\Module\WPLoader::bootstrapActions()
24
     */
25
    public function bootstrapActions() {
26
        return $this->getScenario()->runStep(new \Codeception\Step\Action('bootstrapActions', func_get_args()));
27
    }
28
29
 
30
    /**
31
     * [!] Method is generated. Documentation taken from corresponding module.
32
     *
33
     *
34
     * @see \Codeception\Module\WPLoader::activatePlugins()
35
     */
36
    public function activatePlugins() {
37
        return $this->getScenario()->runStep(new \Codeception\Step\Action('activatePlugins', func_get_args()));
38
    }
39
40
 
41
    /**
42
     * [!] Method is generated. Documentation taken from corresponding module.
43
     *
44
     * Loads the plugins required by the test.
45
     * @see \Codeception\Module\WPLoader::loadPlugins()
46
     */
47
    public function loadPlugins() {
48
        return $this->getScenario()->runStep(new \Codeception\Step\Action('loadPlugins', func_get_args()));
49
    }
50
51
 
52
    /**
53
     * [!] Method is generated. Documentation taken from corresponding module.
54
     *
55
     * Accessor method to get the object storing the factories for things.
56
	 *
57
	 * Example usage:
58
	 *
59
	 *        $postId = $I->factory()->post->create();
60
	 *
61
	 * @return \tad\WPBrowser\Module\WPLoader\FactoryStore
62
     * @see \Codeception\Module\WPLoader::factory()
63
     */
64
    public function factory() {
65
        return $this->getScenario()->runStep(new \Codeception\Step\Action('factory', func_get_args()));
66
    }
67
}
68