Completed
Push — master ( 6c0735...dd8543 )
by Dennis
06:47
created

WP_Test_MslsOptionsTax::test_create_method()   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
 * Tests for MslsOptionsTax
4
 *
5
 * @author Dennis Ploetner <[email protected]>
6
 * @package Msls
7
 */
8
9
use lloc\Msls\MslsOptionsTax;
10
11
/**
12
 * WP_Test_MslsOptionsTax
13
 */
14
class WP_Test_MslsOptionsTax extends Msls_UnitTestCase {
15
16
	/**
17
	 * Verify the static create-method
18
	 */
19
	function test_create_method() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
20
		$obj = MslsOptionsTax::create();
21
		$this->assertInstanceOf( MslsOptionsTax::class, $obj );
22
		return $obj;
23
	}
24
25
	/**
26
	 * Verify the get_tax_query-method
27
	 * @depends test_create_method
28
	 */
29
	function test_get_tax_query_method( $obj ) {
30
		$this->assertInternalType( 'string', $obj->get_tax_query() );
31
	}
32
33
	/**
34
	 * Verify the get_postlink-method
35
	 * @depends test_create_method
36
	 */
37
	function test_get_postlink_method( $obj ) {
38
		$this->assertInternalType( 'string', $obj->get_postlink( 'de_DE' ) );
39
	}
40
41
	/**
42
	 * Verify the get_current_link-method
43
	 * @depends test_create_method
44
	 */
45
	function test_get_current_link_method( $obj ) {
46
		$this->assertInternalType( 'string', $obj->get_current_link() );
47
	}
48
49
}
50