Completed
Pull Request — master (#15)
by Marin
03:51 queued 02:28
created

WpHydraGlobalVarTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Contains tests for verifying the global vars are defined as expected.
4
 *
5
 * @package wp-hydra
6
 */
7
8
/**
9
 * Tests for WP_Hydra's global var definition
10
 */
11
class WpHydraGlobalVarTest extends WP_UnitTestCase {
12
	/**
13
	 * Test setup
14
	 */
15
	public function setUp() {
16
		self::$ignore_files = true;
17
18
		parent::setUp();
19
	}
20
21
	/**
22
	 * Covers the global var definition
23
	 */
24
	public function testGlobalVarDefined() {
25
		global $wp_hydra;
26
27
		$this->assertNotEmpty( $wp_hydra );
28
		$this->assertInstanceOf( 'WP_Hydra', $wp_hydra );
29
	}
30
}
31