Commit de8084d
Flip expected and actual value on assertCookie (#19495)
Problem:
Test:
```
$response->assertCookie("somecookie", 'expected');
```
Controller:
´´´
Cookie::queue('somecookie', 'actual value', $days);
´´´
phpunit
´´´
There was 1 failure:
1) Tests\Feature\LifetimeCookiesTest::by_accessing_the_affiliation_link_a_cookie_must_be_stored
Cookie [somecookie] was found, but value [actual] does not match [expected].
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'actual'
+'expected'
´´´
Solution:
Flip expected and actual values1 parent 42f0a50 commit de8084d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments