@@ -23,7 +23,7 @@ public function testGivenModelIsFlushed()
23
23
$ cachedResults = $ this ->cache
24
24
->tags ($ tags )
25
25
->get ($ key )['value ' ];
26
- $ result = $ this ->artisan ('modelCache:flush ' , ['--model ' => Author::class]);
26
+ $ result = $ this ->artisan ('modelCache:clear ' , ['--model ' => Author::class]);
27
27
$ flushedResults = $ this ->cache
28
28
->tags ($ tags )
29
29
->get ($ key )['value ' ];
@@ -45,7 +45,7 @@ public function testExtendedModelIsFlushed()
45
45
->cache
46
46
->tags ($ tags )
47
47
->get ($ key )['value ' ];
48
- $ result = $ this ->artisan ('modelCache:flush ' , ['--model ' => PrefixedAuthor::class]);
48
+ $ result = $ this ->artisan ('modelCache:clear ' , ['--model ' => PrefixedAuthor::class]);
49
49
$ flushedResults = $ this
50
50
->cache
51
51
->tags ($ tags )
@@ -69,7 +69,7 @@ public function testGivenModelWithRelationshipIsFlushed()
69
69
->tags ($ tags )
70
70
->get ($ key )['value ' ];
71
71
$ result = $ this ->artisan (
72
- 'modelCache:flush ' ,
72
+ 'modelCache:clear ' ,
73
73
['--model ' => Author::class]
74
74
);
75
75
$ flushedResults = $ this ->cache
@@ -84,7 +84,7 @@ public function testGivenModelWithRelationshipIsFlushed()
84
84
public function testNonCachedModelsCannotBeFlushed ()
85
85
{
86
86
$ result = $ this ->artisan (
87
- 'modelCache:flush ' ,
87
+ 'modelCache:clear ' ,
88
88
['--model ' => UncachedAuthor::class]
89
89
);
90
90
@@ -117,7 +117,7 @@ public function testAllModelsAreFlushed()
117
117
$ this ->assertNotEmpty ($ cachedBooks );
118
118
$ this ->assertNotEmpty ($ cachedStores );
119
119
120
- $ this ->artisan ('modelCache:flush ' );
120
+ $ this ->artisan ('modelCache:clear ' );
121
121
122
122
$ key = sha1 ('genealabs:laravel-model-caching:testing:genealabslaravelmodelcachingtestsfixturesauthor ' );
123
123
$ tags = ['genealabs:laravel-model-caching:testing:genealabslaravelmodelcachingtestsfixturesauthor ' ];
0 commit comments