Skip to content

Commit 60cdbec

Browse files
committed
ITT: Eloquent assertions tests added.
1 parent 1e97a2d commit 60cdbec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Asserts/EloquentAssertsTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,16 @@ public function it_has_eloquent_fillable_not_equals_assertion()
2525
{
2626
$this->assertEloquentFillableNotEquals(Post::class, ['title', 'body']);
2727
}
28+
29+
/** @test */
30+
public function it_has_eloquent_touches_equals_assertion()
31+
{
32+
$this->assertEloquentTouchesEquals(Post::class, []);
33+
}
34+
35+
/** @test */
36+
public function it_has_eloquent_touches_not_equals_assertion()
37+
{
38+
$this->assertEloquentTouchesNotEquals(Post::class, ['user']);
39+
}
2840
}

0 commit comments

Comments
 (0)