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 1212class TestMslsOptionsQueryDay extends MslsUnitTestCase {
1313
1414 public function setUp (): void {
15+ parent ::setUp ();
16+
1517 Functions \expect ( 'get_option ' )->once ()->andReturn ( [ 'de_DE ' => 42 ] );
1618
1719 $ this ->test = new MslsOptionsQueryDay ();
Original file line number Diff line number Diff line change 88
99class TestMslsOptionsQueryMonth extends MslsUnitTestCase {
1010
11- function get_test () {
11+ public function setUp (): void {
12+ parent ::setUp ();
13+
1214 Functions \expect ( 'get_option ' )->once ()->andReturn ( [ 'de_DE ' => 42 ] );
1315
14- return new MslsOptionsQueryMonth ();
16+ $ this -> test = new MslsOptionsQueryMonth ();
1517 }
1618
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 ' ) );
2121 }
2222
23- function test_get_current_link_method () {
23+ public function test_get_current_link (): void {
2424 Functions \expect ( 'get_month_link ' )->once ()->andReturn ( 'https://example.org/queried-month ' );
2525
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 () );
2927 }
3028
3129}
You can’t perform that action at this time.
0 commit comments