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 1978f52 commit aea2e00Copy full SHA for aea2e00
tests/Asserts/TraitAssertsTest.php
@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+use Illuminate\Notifications\Notifiable;
4
+use Illuminated\Testing\Asserts\TraitAsserts;
5
6
+class TraitAssertsTest extends TestCase
7
+{
8
+ use TraitAsserts;
9
10
+ /** @test */
11
+ public function it_has_trait_used_assertion()
12
+ {
13
+ $this->assertTraitUsed(Post::class, Notifiable::class);
14
+ }
15
16
17
+ public function it_has_trait_not_used_assertion()
18
19
+ $this->assertTraitNotUsed(Post::class, 'Acme\Trait\Fake');
20
21
+}
tests/fixture/app/Post.php
@@ -1,8 +1,11 @@
<?php
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
+ use Notifiable;
protected $fillable = ['title'];
}
0 commit comments