Skip to content

Commit ac72220

Browse files
Correct remaining reference (#10294)
1 parent 4fa8bb8 commit ac72220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mocking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class UserController extends Controller
111111
}
112112
```
113113

114-
We can mock the call to the `Cache` facade by using the `shouldReceive` method, which will return an instance of a [Mockery](https://github.com/padraic/mockery) mock. Since facades are actually resolved and managed by the Laravel [service container](/docs/{{version}}/container), they have much more testability than a typical static class. For example, let's mock our call to the `Cache` facade's `get` method:
114+
We can mock the call to the `Cache` facade by using the `expects` method, which will return an instance of a [Mockery](https://github.com/padraic/mockery) mock. Since facades are actually resolved and managed by the Laravel [service container](/docs/{{version}}/container), they have much more testability than a typical static class. For example, let's mock our call to the `Cache` facade's `get` method:
115115

116116
```php tab=Pest
117117
<?php

0 commit comments

Comments
 (0)