Skip to content

Commit 6bcad86

Browse files
committed
Fix test includes helpes expected deprecation assertion
1 parent 02e7f09 commit 6bcad86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/includes/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ public function test__unregister_post_status() {
234234
* @ticket 28486
235235
*/
236236
public function test_setExpectedDeprecated() {
237-
$this->setExpectedDeprecated( 'Tests_TestHelpers::mock_deprecated' );
237+
$this->setExpectedDeprecated( __CLASS__ . '::mock_incorrect_usage' );
238238
$this->assertTrue( $this->mock_deprecated() );
239239
}
240240

241241
/**
242242
* @ticket 28486
243243
*/
244244
public function test_setExpectedIncorrectUsage() {
245-
$this->setExpectedIncorrectUsage( 'Tests_TestHelpers::mock_incorrect_usage' );
245+
$this->setExpectedIncorrectUsage( __CLASS__ . '::mock_incorrect_usage' );
246246
$this->assertTrue( $this->mock_incorrect_usage() );
247247
}
248248

0 commit comments

Comments
 (0)