Skip to content

Commit

Permalink
Update database tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriBouteille committed Oct 8, 2024
1 parent dfcfa90 commit 4c27bf2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/WordPress/Models/PostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function testAuthor(): void

/**
* @return void
* @covers User::comments
* @covers Post::comments
*/
public function testComments(): void
{
Expand All @@ -166,8 +166,17 @@ public function testComments(): void

$this->assertHasManyRelation(
expectedItems: $post->comments,
relationProperty: 'comment_post_ID',
relationProperty: 'comment_ID',
expectedIds: $ids
);
}

/**
* @return void
* @covers Post::save
*/
public function testSave(): void
{

}
}

0 comments on commit 4c27bf2

Please sign in to comment.