We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce92fd9 commit 0c8150eCopy full SHA for 0c8150e
docs/testing/state-assertions.md
@@ -4,7 +4,7 @@ Complete guide to asserting machine state in your tests.
4
5
## State Matching
6
7
-### matches()
+### `matches()`
8
9
Check if machine is in a specific state:
10
@@ -61,14 +61,14 @@ expect($machine->state->context->total)->toBe(100);
61
expect($machine->state->context->orderId)->not->toBeNull();
62
```
63
64
-### Using get()
+### Using `get()`
65
66
```php
67
expect($machine->state->context->get('items'))->toHaveCount(1);
68
expect($machine->state->context->get('user.email'))->toBe('test@example.com');
69
70
71
-### Using has()
+### Using `has()`
72
73
74
expect($machine->state->context->has('orderId'))->toBeTrue();
0 commit comments