Skip to content

Commit 6d14caa

Browse files
pfefferleCopilot
andauthored
Update tests/phpunit/tests/includes/handler/class-test-create.php
Co-authored-by: Copilot <[email protected]>
1 parent ead7fbc commit 6d14caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/includes/handler/class-test-create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public function test_create_post_disabled_by_option() {
484484

485485
// Verify no post was created.
486486
$created_object = Posts::get_by_guid( 'https://example.com/objects/note_disabled' );
487-
$this->assertTrue( \is_wp_error( $created_object ) || \is_null( $created_object ) );
487+
$this->assertTrue( \is_wp_error( $created_object ) );
488488

489489
\remove_filter( 'activitypub_pre_http_get_remote_object', $mock_callback );
490490
}

0 commit comments

Comments
 (0)