We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd80987 commit 1210e83Copy full SHA for 1210e83
tests/phpunit/tests/abilities-api/wpAbilitiesRegistry.php
@@ -436,10 +436,8 @@ public function test_register_new_ability_with_versioned_name() {
436
$versioned_name = 'test/v1/add-numbers';
437
$result = $this->registry->register( $versioned_name, self::$test_ability_args );
438
439
- $this->assertSame(
440
- new WP_Ability( $versioned_name, self::$test_ability_args ),
441
- $result
442
- );
+ $this->assertInstanceOf( WP_Ability::class, $result );
+ $this->assertSame( $versioned_name, $result->get_name() );
443
}
444
445
/**
0 commit comments