We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320a007 commit f4180b8Copy full SHA for f4180b8
tests/Asserts/EloquentAssertsTest.php
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+class EloquentAssertsTest extends TestCase
4
+{
5
+ /** @test */
6
+ public function it_has_eloquent_table_equals_assertion()
7
+ {
8
+ $this->assertEloquentTableEquals(Post::class, 'posts');
9
+ }
10
11
12
+ public function it_has_eloquent_table_not_equals_assertion()
13
14
+ $this->assertEloquentTableNotEquals(Post::class, 'users');
15
16
+}
tests/fixture/app/Post.php
@@ -7,5 +7,6 @@ class Post extends Model
{
use Notifiable;
+ protected $table = 'posts';
protected $fillable = ['title'];
}
0 commit comments