Skip to content

Commit 2a1d0cd

Browse files
committed
Test added
1 parent de96af6 commit 2a1d0cd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/TestMslsOptionsTax.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,24 @@ class TestMslsOptionsTax extends MslsUnitTestCase {
1414
protected function setUp(): void {
1515
parent::setUp();
1616

17-
Functions\expect( 'get_option' )->once()->andReturn( [] );
17+
Functions\expect( 'get_option' )->once()->andReturn( array() );
1818

1919
$this->test = new MslsOptionsTax( 0 );
2020
}
2121

22-
public function test_get_tax_query_method(): void {
22+
public function test_get_tax_query(): void {
2323
$this->assertIsString( $this->test->get_tax_query() );
2424
}
2525

26-
public function test_get_postlink_method(): void {
26+
public function test_get_postlink(): void {
2727
$this->assertIsString( $this->test->get_postlink( 'de_DE' ) );
2828
}
2929

30-
public function test_get_current_link_method(): void {
30+
public function test_get_current_link(): void {
3131
$this->assertIsString( $this->test->get_current_link() );
3232
}
3333

34+
public function test_get_term_link(): void {
35+
$this->assertIsString( $this->test->get_term_link( 42 ) );
36+
}
3437
}

0 commit comments

Comments
 (0)