@@ -419,7 +419,7 @@ public function test_register_incorrect_already_registered_ability() {
419419 public function test_register_new_ability () {
420420 $ result = $ this ->registry ->register ( self ::$ test_ability_name , self ::$ test_ability_args );
421421
422- $ this ->assertEquals (
422+ $ this ->assertSame (
423423 new WP_Ability ( self ::$ test_ability_name , self ::$ test_ability_args ),
424424 $ result
425425 );
@@ -436,7 +436,7 @@ public function test_register_new_ability_with_versioned_name() {
436436 $ versioned_name = 'test/v1/add-numbers ' ;
437437 $ result = $ this ->registry ->register ( $ versioned_name , self ::$ test_ability_args );
438438
439- $ this ->assertEquals (
439+ $ this ->assertSame (
440440 new WP_Ability ( $ versioned_name , self ::$ test_ability_args ),
441441 $ result
442442 );
@@ -499,7 +499,7 @@ public function test_get_registered_for_known_ability() {
499499 $ this ->registry ->register ( 'test/three ' , self ::$ test_ability_args );
500500
501501 $ result = $ this ->registry ->get_registered ( 'test/two ' );
502- $ this ->assertEquals ( 'test/two ' , $ result ->get_name () );
502+ $ this ->assertSame ( 'test/two ' , $ result ->get_name () );
503503 }
504504
505505 /**
@@ -530,7 +530,7 @@ public function test_unregister_for_known_ability() {
530530 $ this ->registry ->register ( 'test/three ' , self ::$ test_ability_args );
531531
532532 $ result = $ this ->registry ->unregister ( 'test/three ' );
533- $ this ->assertEquals ( 'test/three ' , $ result ->get_name () );
533+ $ this ->assertSame ( 'test/three ' , $ result ->get_name () );
534534
535535 $ this ->assertFalse ( $ this ->registry ->is_registered ( 'test/three ' ) );
536536 }
0 commit comments