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 1919 "mockery/mockery" : " 0.9.*" ,
2020 "phpmd/phpmd" : " ^2.6" ,
2121 "phpunit/phpunit" : " 5.7.*" ,
22- "predis/predis" : " *" ,
2322 "satooshi/php-coveralls" : " dev-master@dev" ,
2423 "sebastian/phpcpd" : " *"
2524 },
Original file line number Diff line number Diff line change 2727 <php >
2828 <env name =" APP_KEY" value =" base64:Xgs1LQt1GdVHhD6qyYCXnyq61DE3UKqJ5k2SJc+Nw2g=" />
2929 <env name =" APP_ENV" value =" testing" />
30- <env name =" CACHE_DRIVER" value =" redis " />
30+ <env name =" CACHE_DRIVER" value =" array " />
3131 <env name =" SESSION_DRIVER" value =" array" />
3232 <env name =" QUEUE_DRIVER" value =" sync" />
3333 <env name =" DB_CONNECTION" value =" sqlite" />
Original file line number Diff line number Diff line change @@ -34,4 +34,13 @@ public function testCacheIsNotEmptyAfterLoadingModels()
3434
3535 $ this ->assertNotNull (cache ()->get ('genealabslaravelmodelcachingtestsfixturesauthor_1_2_3_4_5_6_7_8_9_10-genealabslaravelmodelcachingtestsfixturesbooks ' ));
3636 }
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+ }
3746}
You can’t perform that action at this time.
0 commit comments