File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -482,20 +482,22 @@ public function testOrderByClauseParsing()
482482
483483 public function testNestedRelationshipWhereClauseParsing ()
484484 {
485- $ authors = collect ([( new Author )
486- ->with ( ' books.publisher ' )-> where ( ' name ' , ' <> ' , '' )-> first ()] );
485+ $ authors = ( new Author )-> with ( ' books.publisher ' )
486+ ->get ( );
487487
488- $ key = 'genealabslaravelmodelcachingtestsfixturesauthor-name_- books-books.publisher-first ' ;
488+ $ key = 'genealabslaravelmodelcachingtestsfixturesauthor-books-books.publisher ' ;
489489 $ tags = [
490490 'genealabslaravelmodelcachingtestsfixturesauthor ' ,
491491 'genealabslaravelmodelcachingtestsfixturesbook ' ,
492492 'genealabslaravelmodelcachingtestsfixturespublisher ' ,
493493 ];
494494
495- $ cachedResults = collect ([cache ()->tags ($ tags )->get ($ key )]);
496-
497- $ liveResults = collect ([(new UncachedAuthor )->with ('books.publisher ' )->where ('name ' ,'<> ' ,'' )->first ()]);
498-
495+ $ cachedResults = cache ()->tags ($ tags )
496+ ->get ($ key );
497+
498+ $ liveResults = (new UncachedAuthor )->with ('books.publisher ' )
499+ ->get ();
500+
499501 $ this ->assertEmpty ($ authors ->diffAssoc ($ cachedResults ));
500502 $ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
501503 }
You can’t perform that action at this time.
0 commit comments