File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 19
19
"mockery/mockery" : " 0.9.*" ,
20
20
"phpmd/phpmd" : " ^2.6" ,
21
21
"phpunit/phpunit" : " 5.7.*" ,
22
- "predis/predis" : " *" ,
23
22
"satooshi/php-coveralls" : " dev-master@dev" ,
24
23
"sebastian/phpcpd" : " *"
25
24
},
Original file line number Diff line number Diff line change 27
27
<php >
28
28
<env name =" APP_KEY" value =" base64:Xgs1LQt1GdVHhD6qyYCXnyq61DE3UKqJ5k2SJc+Nw2g=" />
29
29
<env name =" APP_ENV" value =" testing" />
30
- <env name =" CACHE_DRIVER" value =" redis " />
30
+ <env name =" CACHE_DRIVER" value =" array " />
31
31
<env name =" SESSION_DRIVER" value =" array" />
32
32
<env name =" QUEUE_DRIVER" value =" sync" />
33
33
<env name =" DB_CONNECTION" value =" sqlite" />
Original file line number Diff line number Diff line change @@ -34,4 +34,13 @@ public function testCacheIsNotEmptyAfterLoadingModels()
34
34
35
35
$ this ->assertNotNull (cache ()->get ('genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_7_8_9_10-genealabslaravelmodelcachingtestsfixturesbooks ' ));
36
36
}
37
+
38
+ public function testChangingModelClearsCache ()
39
+ {
40
+ $ author = (new Author )->with ('books ' )->first ();
41
+ $ author ->name = "John Jinglheimer " ;
42
+ $ author ->save ();
43
+
44
+ $ this ->assertNull (cache ()->get ('genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_7_8_9_10-genealabslaravelmodelcachingtestsfixturesbooks ' ));
45
+ }
37
46
}
You can’t perform that action at this time.
0 commit comments