Skip to content

Commit 716df1f

Browse files
committed
Added new cases to unit tests
1 parent ee12007 commit 716df1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/TaggableBehaviorTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public function testFindPosts()
2828
$this->assertEquals(require(__DIR__ . '/data/test-find-posts.php'), $data);
2929
}
3030

31+
public function testFindPost()
32+
{
33+
$post = Post::findOne(2);
34+
$this->assertEquals('tag2, tag3, tag4', $post->tagNames);
35+
}
36+
3137
public function testCreatePost()
3238
{
3339
$post = new Post([

0 commit comments

Comments
 (0)