Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Test_Case extends WP_UnitTestCase { |
||
17 | |||
18 | const OPTION_NAME = 'wp_site_monitor_enable'; |
||
19 | const OPTION_GROUP = 'wp_site_monitor'; |
||
20 | |||
21 | /** |
||
22 | * Assert that the plugin is being loaded by WordPress. |
||
23 | */ |
||
24 | public function test_plugin_is_loaded() { |
||
25 | $this->assertTrue( defined( 'WP_SITE_MONITOR_VERSION' ) ); |
||
26 | $this->assertTrue( defined( 'WPINC' ) ); |
||
27 | $this->assertTrue( defined( 'WPSM_FILE' ) ); |
||
28 | $this->assertTrue( defined( 'WPSM_PATH' ) ); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Set current WordPress user. |
||
33 | * |
||
34 | * @param string $role |
||
35 | */ |
||
36 | protected function log_in( $role = 'administrator' ) { |
||
38 | } |
||
39 | } |
||
40 |