File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -504,26 +504,17 @@ public function testNestedRelationshipWhereClauseParsing()
504
504
505
505
public function testExistsRelationshipWhereClauseParsing ()
506
506
{
507
-
508
- $ authors = collect ([(new Author )->whereHas ('books ' )->first ()]);
509
-
510
- $ key = 'genealabslaravelmodelcachingtestsfixturesauthor_and_authors.id_=_books.author_id-first ' ;
507
+ $ authors = (new Author )->whereHas ('books ' )
508
+ ->get ();
509
+ $ key = 'genealabslaravelmodelcachingtestsfixturesauthor_and_authors.id_=_books.author_id ' ;
511
510
$ tags = ['genealabslaravelmodelcachingtestsfixturesauthor ' ];
512
511
513
- $ cachedResults = collect ([cache ()->tags ($ tags )->get ($ key )]);
514
-
515
- $ liveResults = collect ([(new UncachedAuthor )
516
- ->whereHas ('books ' )->first ()]);
517
-
518
- $ this ->assertTrue ($ authors ->diffAssoc ($ cachedResults )->isEmpty ());
519
- $ this ->assertTrue ($ liveResults ->diffAssoc ($ cachedResults )->isEmpty ());
520
-
521
- }
512
+ $ cachedResults = cache ()->tags ($ tags )->get ($ key );
513
+ $ liveResults = (new UncachedAuthor )->whereHas ('books ' )
514
+ ->get ();
522
515
523
- public function testColumnsRelationshipWhereClauseParsing ()
524
- {
525
- // ???
526
- $ this ->markTestIncomplete ();
516
+ $ this ->assertEmpty ($ authors ->diffAssoc ($ cachedResults ));
517
+ $ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
527
518
}
528
519
529
520
public function testRawWhereClauseParsing ()
You can’t perform that action at this time.
0 commit comments