@@ -60,24 +60,24 @@ public function testSetCachePrefixAttribute()
6060 $ this ->assertNotNull ($ results );
6161 }
6262
63- // public function testAllReturnsCollection()
64- // {
65- // (new Author)->truncate();
66- // factory(Author::class, 1)->create();
67- // $authors = (new Author)->all();
68- //
69- // $cachedResults = $this
70- // ->cache()
71- // ->tags([
72- // 'genealabs:laravel-model-caching:genealabslaravelmodelcachingtestsfixturesauthor',
73- // ])
74- // ->get(sha1('genealabs:laravel-model-caching:genealabslaravelmodelcachingtestsfixturesauthor'))['value'];
75- // $liveResults = (new UncachedAuthor)->all();
76- //
77- // $this->assertInstanceOf(Collection::class, $authors);
78- // $this->assertInstanceOf(Collection::class, $cachedResults);
79- // $this->assertInstanceOf(Collection::class, $liveResults);
80- // }
63+ public function testAllReturnsCollection ()
64+ {
65+ (new Author )->truncate ();
66+ factory (Author::class, 1 )->create ();
67+ $ authors = (new Author )->all ();
68+
69+ $ cachedResults = $ this
70+ ->cache ()
71+ ->tags ([
72+ 'genealabs:laravel-model-caching:genealabslaravelmodelcachingtestsfixturesauthor ' ,
73+ ])
74+ ->get (sha1 ('genealabs:laravel-model-caching:genealabslaravelmodelcachingtestsfixturesauthor ' ))['value ' ];
75+ $ liveResults = (new UncachedAuthor )->all ();
76+
77+ $ this ->assertInstanceOf (Collection::class, $ authors );
78+ $ this ->assertInstanceOf (Collection::class, $ cachedResults );
79+ $ this ->assertInstanceOf (Collection::class, $ liveResults );
80+ }
8181
8282 public function testsCacheFlagDisablesCaching ()
8383 {
0 commit comments