Skip to content

Commit 525ffe1

Browse files
committed
fix: Improve assertion to check for empty string in post_title
1 parent b73f199 commit 525ffe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/admin/includesPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,6 @@ public function test_no_title_supported_when_title_not_supported() {
13551355

13561356
$default_post = get_default_post_to_edit( 'no_title', true );
13571357
$post = get_post( $default_post->ID );
1358-
$this->assertEmpty( $post->post_title );
1358+
$this->assertSame( '', $post->post_title, 'Expected post_title to be an empty string.' );
13591359
}
13601360
}

0 commit comments

Comments
 (0)