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

WP_Test_MslsOptionsQueryYear   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_has_value_method() 0 5 1
A test_get_current_link_method() 0 3 1
1
<?php
2
/**
3
 * Tests for MslsOptionsQueryYear
4
 *
5
 * @author Dennis Ploetner <[email protected]>
6
 * @package Msls
7
 */
8
9
use lloc\Msls\MslsOptionsQueryYear;
10
11
/**
12
 * WP_Test_MslsOptionsQueryYear
13
 */
14
class WP_Test_MslsOptionsQueryYear extends Msls_UnitTestCase {
15
16
	/**
17
	 * Verify the has_value-method
18
	 */
19
	function test_has_value_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 = new MslsOptionsQueryYear();
21
		$this->assertInternalType( 'boolean', $obj->has_value( 'de_DE' ) );
22
		return $obj;
23
	}
24
25
	/**
26
	 * Verify the get_current_link-method
27
	 * @depends test_has_value_method
28
	 */
29
	function test_get_current_link_method( $obj ) {
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...
30
		$this->assertInternalType( 'string', $obj->get_current_link() );
31
	}
32
33
}
34