File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ class UncachedProfile extends CachedModel
14
14
15
15
public function author () : BelongsTo
16
16
{
17
- return $ this ->belongsTo (UnachedAuthor ::class);
17
+ return $ this ->belongsTo (UncachedAuthor ::class);
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public function testCursorModelResultsCreatesCache()
278
278
279
279
public function testFindModelResultsCreatesCache ()
280
280
{
281
- $ author = ( new Author )->find (1 );
281
+ $ author = collect ()-> push (( new Author )->find (1 ) );
282
282
$ key = 'genealabslaravelmodelcachingtestsfixturesauthor_1 ' ;
283
283
$ tags = [
284
284
'genealabslaravelmodelcachingtestsfixturesauthor ' ,
@@ -288,7 +288,7 @@ public function testFindModelResultsCreatesCache()
288
288
->get ($ key ));
289
289
$ liveResults = collect ()->push ((new UncachedAuthor )->find (1 ));
290
290
291
- $ this ->assertEquals ($ author, $ cachedResults -> first ( ));
291
+ $ this ->assertEmpty ($ author-> diffAssoc ( $ cachedResults ));
292
292
$ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
293
293
}
294
294
You can’t perform that action at this time.
0 commit comments