File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 12
12
class TestMslsOptionsQueryDay extends MslsUnitTestCase {
13
13
14
14
public function setUp (): void {
15
+ parent ::setUp ();
16
+
15
17
Functions \expect ( 'get_option ' )->once ()->andReturn ( [ 'de_DE ' => 42 ] );
16
18
17
19
$ this ->test = new MslsOptionsQueryDay ();
Original file line number Diff line number Diff line change 8
8
9
9
class TestMslsOptionsQueryMonth extends MslsUnitTestCase {
10
10
11
- function get_test () {
11
+ public function setUp (): void {
12
+ parent ::setUp ();
13
+
12
14
Functions \expect ( 'get_option ' )->once ()->andReturn ( [ 'de_DE ' => 42 ] );
13
15
14
- return new MslsOptionsQueryMonth ();
16
+ $ this -> test = new MslsOptionsQueryMonth ();
15
17
}
16
18
17
- function test_has_value_method () {
18
- $ obj = $ this ->get_test ();
19
-
20
- $ this ->assertIsBool ( $ obj ->has_value ( 'de_DE ' ) );
19
+ public function test_has_value (): void {
20
+ $ this ->assertIsBool ( $ this ->test ->has_value ( 'de_DE ' ) );
21
21
}
22
22
23
- function test_get_current_link_method () {
23
+ public function test_get_current_link (): void {
24
24
Functions \expect ( 'get_month_link ' )->once ()->andReturn ( 'https://example.org/queried-month ' );
25
25
26
- $ obj = $ this ->get_test ();
27
-
28
- $ this ->assertEquals ( 'https://example.org/queried-month ' , $ obj ->get_current_link () );
26
+ $ this ->assertEquals ( 'https://example.org/queried-month ' , $ this ->test ->get_current_link () );
29
27
}
30
28
31
29
}
You can’t perform that action at this time.
0 commit comments