@@ -635,7 +635,7 @@ function () use ( $keys ) {
635635 /**
636636 * Test RFC-9421 signature verification when it is unsupported.
637637 *
638- * @covers ::rfc9421_is_unsupported
638+ * @covers ::could_support_rfc9421
639639 */
640640 public function test_rfc9421_is_unsupported () {
641641 \add_option ( 'activitypub_rfc9421_unsupported ' , array ( 'sub.www.example.org ' => \time () + MINUTE_IN_SECONDS ), '' , false );
@@ -689,9 +689,9 @@ public function test_set_rfc9421_unsupported() {
689689 $ url = 'https://example.org/wp-json/activitypub/1.0/inbox ' ;
690690
691691 // Test domain is not unsupported.
692- $ rfc9421_is_unsupported = new \ReflectionMethod ( Signature::class, 'rfc9421_is_unsupported ' );
693- $ rfc9421_is_unsupported ->setAccessible ( true );
694- $ this ->assertFalse ( $ rfc9421_is_unsupported ->invoke ( null , $ url ) );
692+ $ could_support_rfc9421 = new \ReflectionMethod ( Signature::class, 'could_support_rfc9421 ' );
693+ $ could_support_rfc9421 ->setAccessible ( true );
694+ $ this ->assertTrue ( $ could_support_rfc9421 ->invoke ( null , $ url ) );
695695
696696 \add_filter (
697697 'pre_http_request ' ,
@@ -721,7 +721,7 @@ function ( $response, $args, $url ) {
721721 Http::post ( $ url , '{"type":"Create","actor":"https://example.org/author/admin","object":{"type":"Note","content":"Test content."}} ' , 1 );
722722
723723 // Domain is set as unsupported.
724- $ this ->assertTrue ( $ rfc9421_is_unsupported ->invoke ( null , $ url ) );
724+ $ this ->assertFalse ( $ could_support_rfc9421 ->invoke ( null , $ url ) );
725725
726726 // Cleanup.
727727 \delete_option ( 'activitypub_rfc9421_signature ' );
0 commit comments