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 d7ce3df commit 2203481Copy full SHA for 2203481
README.md
@@ -318,3 +318,21 @@ Checks that specified command was not registered by service provider:
318
```php
319
$this->assertCommandNotRegistered('fake');
320
```
321
+
322
+### TraitAsserts
323
324
+#### `assertTraitUsed()`
325
326
+Checks that class is using specified trait:
327
328
+```php
329
+$this->assertTraitUsed(User::class, Notifiable::class);
330
+```
331
332
+#### `assertTraitNotUsed()`
333
334
+Checks that class is not using specified trait:
335
336
337
+$this->assertTraitNotUsed(Post::class, Notifiable::class);
338
0 commit comments