File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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
1414
1515 public function author () : BelongsTo
1616 {
17- return $ this ->belongsTo (UnachedAuthor ::class);
17+ return $ this ->belongsTo (UncachedAuthor ::class);
1818 }
1919}
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public function testCursorModelResultsCreatesCache()
278278
279279 public function testFindModelResultsCreatesCache ()
280280 {
281- $ author = ( new Author )->find (1 );
281+ $ author = collect ()-> push (( new Author )->find (1 ) );
282282 $ key = 'genealabslaravelmodelcachingtestsfixturesauthor_1 ' ;
283283 $ tags = [
284284 'genealabslaravelmodelcachingtestsfixturesauthor ' ,
@@ -288,7 +288,7 @@ public function testFindModelResultsCreatesCache()
288288 ->get ($ key ));
289289 $ liveResults = collect ()->push ((new UncachedAuthor )->find (1 ));
290290
291- $ this ->assertEquals ($ author, $ cachedResults -> first ( ));
291+ $ this ->assertEmpty ($ author-> diffAssoc ( $ cachedResults ));
292292 $ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
293293 }
294294
You can’t perform that action at this time.
0 commit comments