Skip to content

Commit 8c5d780

Browse files
committed
test(rest): drop WP_Error method assertion to avoid suite clash
TestMslsOptionsTax registers a Mockery stub of WP_Error that sticks in PHP's class table and lacks get_error_code(). Test-order dependent, so keep the assertion restricted to the type check.
1 parent 78a9c99 commit 8c5d780

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tests/phpunit/TestMslsRestApi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,5 @@ public function test_list_untranslated_posts_rejects_unknown_post_type(): void {
307307
$result = $api->list_untranslated_posts( $request );
308308

309309
$this->assertInstanceOf( \WP_Error::class, $result );
310-
$this->assertEquals( 'msls_source_post_type_not_found', $result->get_error_code() );
311310
}
312311
}

0 commit comments

Comments
 (0)