Skip to content

Commit 888ba44

Browse files
Tests: Remove redundant assertNotNull in get_post() tests
Simplifies the test logic by removing an unnecessary null check, as subsequent type assertions already provide this verification. Co-authored-by: gemini-cli <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 31984a0 commit 888ba44

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/phpunit/tests/post/getPost.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public function test_get_post( callable $input, string $output, string $filter,
7070
return;
7171
}
7272

73-
$this->assertNotNull( $post );
74-
7573
if ( ARRAY_A === $output ) {
7674
$this->assertIsArray( $post );
7775
$this->assertArrayHasKey( 'ID', $post );

0 commit comments

Comments
 (0)