@@ -23,7 +23,7 @@ public function testGivenModelIsFlushed()
2323 $ cachedResults = $ this ->cache
2424 ->tags ($ tags )
2525 ->get ($ key )['value ' ];
26- $ result = $ this ->artisan ('modelCache:flush ' , ['--model ' => Author::class]);
26+ $ result = $ this ->artisan ('modelCache:clear ' , ['--model ' => Author::class]);
2727 $ flushedResults = $ this ->cache
2828 ->tags ($ tags )
2929 ->get ($ key )['value ' ];
@@ -45,7 +45,7 @@ public function testExtendedModelIsFlushed()
4545 ->cache
4646 ->tags ($ tags )
4747 ->get ($ key )['value ' ];
48- $ result = $ this ->artisan ('modelCache:flush ' , ['--model ' => PrefixedAuthor::class]);
48+ $ result = $ this ->artisan ('modelCache:clear ' , ['--model ' => PrefixedAuthor::class]);
4949 $ flushedResults = $ this
5050 ->cache
5151 ->tags ($ tags )
@@ -69,7 +69,7 @@ public function testGivenModelWithRelationshipIsFlushed()
6969 ->tags ($ tags )
7070 ->get ($ key )['value ' ];
7171 $ result = $ this ->artisan (
72- 'modelCache:flush ' ,
72+ 'modelCache:clear ' ,
7373 ['--model ' => Author::class]
7474 );
7575 $ flushedResults = $ this ->cache
@@ -84,7 +84,7 @@ public function testGivenModelWithRelationshipIsFlushed()
8484 public function testNonCachedModelsCannotBeFlushed ()
8585 {
8686 $ result = $ this ->artisan (
87- 'modelCache:flush ' ,
87+ 'modelCache:clear ' ,
8888 ['--model ' => UncachedAuthor::class]
8989 );
9090
@@ -117,7 +117,7 @@ public function testAllModelsAreFlushed()
117117 $ this ->assertNotEmpty ($ cachedBooks );
118118 $ this ->assertNotEmpty ($ cachedStores );
119119
120- $ this ->artisan ('modelCache:flush ' );
120+ $ this ->artisan ('modelCache:clear ' );
121121
122122 $ key = sha1 ('genealabs:laravel-model-caching:testing:genealabslaravelmodelcachingtestsfixturesauthor ' );
123123 $ tags = ['genealabs:laravel-model-caching:testing:genealabslaravelmodelcachingtestsfixturesauthor ' ];
0 commit comments