Changeset 61364
- Timestamp:
- 12/09/2025 10:02:19 PM (2 weeks ago)
- Location:
- trunk/tests/phpunit/tests/abilities-api
- Files:
-
- 2 edited
-
wpAbilitiesRegistry.php (modified) (2 diffs)
-
wpRegisterAbility.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/abilities-api/wpAbilitiesRegistry.php
r61130 r61364 469 469 470 470 $result = $this->registry->get_registered( 'test/two' ); 471 $this->assert Equals( 'test/two', $result->get_name() );471 $this->assertSame( 'test/two', $result->get_name() ); 472 472 } 473 473 … … 500 500 501 501 $result = $this->registry->unregister( 'test/three' ); 502 $this->assert Equals( 'test/three', $result->get_name() );502 $this->assertSame( 'test/three', $result->get_name() ); 503 503 504 504 $this->assertFalse( $this->registry->is_registered( 'test/three' ) ); -
trunk/tests/phpunit/tests/abilities-api/wpRegisterAbility.php
r61130 r61364 254 254 'Execution should fail due to no permissions' 255 255 ); 256 $this->assert Equals( 'ability_invalid_permissions', $actual->get_error_code() );256 $this->assertSame( 'ability_invalid_permissions', $actual->get_error_code() ); 257 257 } 258 258
Note: See TracChangeset
for help on using the changeset viewer.