Skip to content

Commit

Permalink
Complement note about facades not to be mocked
Browse files Browse the repository at this point in the history
Config cannot be mocked.
  • Loading branch information
tpraxl committed Oct 19, 2016
1 parent a8865cd commit 80c95f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocking.md
Expand Up @@ -315,4 +315,4 @@ We can mock the call to the `Cache` facade by using the `shouldReceive` method,
}
}

> {note} You should not mock the `Request` facade. Instead, pass the input you desire into the HTTP helper methods such as `call` and `post` when running your test.
> {note} You should not mock the `Request` facade. Instead, pass the input you desire into the HTTP helper methods such as `call` and `post` when running your test. Also notice that you cannot mock the `Config` facade. Instead use `Config::set($key,$value)` in your test.

0 comments on commit 80c95f0

Please sign in to comment.