Skip to content

Commit e4f4a49

Browse files
author
francoism90
committed
Add paginates & collections tests
1 parent c203a23 commit e4f4a49

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/AppendTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ public function it_can_append_case_insensitive()
4848
$this->assertAttributeLoaded($model, 'fullname');
4949
}
5050

51+
/** @test */
52+
public function it_can_append_collections()
53+
{
54+
$model = $this
55+
->createQueryFromAppendRequest('FullName')
56+
->allowedAppends('fullname')
57+
->get();
58+
59+
$this->assertAttributeLoaded($model, 'fullname');
60+
}
61+
62+
/** @test */
63+
public function it_can_append_paginates()
64+
{
65+
$model = $this
66+
->createQueryFromAppendRequest('FullName')
67+
->allowedAppends('fullname')
68+
->paginate();
69+
70+
$this->assertAttributeLoaded($model, 'fullname');
71+
}
72+
5173
/** @test */
5274
public function it_guards_against_invalid_appends()
5375
{

0 commit comments

Comments
 (0)