Skip to content

Commit 2203481

Browse files
committed
ITT: Trait asserts readme info added.
1 parent d7ce3df commit 2203481

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,21 @@ Checks that specified command was not registered by service provider:
318318
```php
319319
$this->assertCommandNotRegistered('fake');
320320
```
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+
```php
337+
$this->assertTraitNotUsed(Post::class, Notifiable::class);
338+
```

0 commit comments

Comments
 (0)