@@ -381,7 +381,7 @@ public function testNestedRelationshipEagerLoading()
381381 $ authors = collect ([(new Author )->with ('books.publisher ' )
382382 ->first ()]);
383383
384- $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-authors.deleted_at_null-testing: {$ this ->testingSqlitePath }testing.sqlite:books-testing: { $ this -> testingSqlitePath } testing.sqlite: books.publisher-first " );
384+ $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-authors.deleted_at_null-testing: {$ this ->testingSqlitePath }testing.sqlite:books-books.publisher-first " );
385385 $ tags = [
386386 "genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor " ,
387387 "genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:genealabslaravelmodelcachingtestsfixturesbook " ,
@@ -501,7 +501,7 @@ public function testDoesntHaveWhereClauseParsing()
501501 ->doesntHave ('books ' )
502502 ->get ();
503503
504- $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor_notexists_and_authors .id_=_books.author_id " );
504+ $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-notexists-and_authors .id_=_books.author_id-authors.deleted_at_null " );
505505 $ tags = ["genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor " ];
506506
507507 $ cachedResults = $ this ->cache ()
@@ -567,14 +567,15 @@ public function testDelete()
567567 ->first ();
568568 $ authorId = $ author ->id ;
569569 $ liveResultId = $ liveResult ->id ;
570- $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor " );
570+ $ key = sha1 ("genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:authors:genealabslaravelmodelcachingtestsfixturesauthor-authors.deleted_at_null-first " );
571571 $ tags = ["genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor " ];
572572
573573 $ author ->delete ();
574574 $ liveResult ->delete ();
575575 $ cachedResult = $ this ->cache ()
576576 ->tags ($ tags )
577- ->get ($ key )['value ' ];
577+ ->get ($ key )['value ' ]
578+ ?? null ;
578579 $ deletedAuthor = (new Author )->find ($ authorId );
579580
580581 $ this ->assertEquals ($ liveResultId , $ authorId );
@@ -687,12 +688,14 @@ public function testSubsequentDisabledCacheQueriesDoNotCache()
687688 $ tags = ["genealabs:laravel-model-caching:testing: {$ this ->testingSqlitePath }testing.sqlite:genealabslaravelmodelcachingtestsfixturesauthor " ];
688689 $ cachedAuthors1 = $ this ->cache ()
689690 ->tags ($ tags )
690- ->get ($ key )['value ' ];
691+ ->get ($ key )['value ' ]
692+ ?? null ;
691693
692694 (new Author )->disableCache ()->get ();
693695 $ cachedAuthors2 = $ this ->cache ()
694696 ->tags ($ tags )
695- ->get ($ key )['value ' ];
697+ ->get ($ key )['value ' ]
698+ ?? null ;
696699
697700 $ this ->assertEmpty ($ cachedAuthors1 );
698701 $ this ->assertEmpty ($ cachedAuthors2 );
0 commit comments