@@ -410,26 +410,27 @@ public function testSumModelResultsCreatesCache()
410410 $ this ->assertEquals ($ liveResult , $ cachedResult );
411411 }
412412
413+ /**
414+ * @group test
415+ */
413416 public function testValueModelResultsCreatesCache ()
414417 {
415- $ authors = (new Author )->with ('books ' , 'profile ' )
418+ $ authorName = (new Author )->with ('books ' , 'profile ' )
416419 ->value ('name ' );
417- $ key = 'genealabslaravelmodelcachingtestsfixturesauthor_name -books-profile-first ' ;
420+ $ key = 'genealabslaravelmodelcachingtestsfixturesauthor -books-profile-value_name ' ;
418421 $ tags = [
419422 'genealabslaravelmodelcachingtestsfixturesauthor ' ,
420423 'genealabslaravelmodelcachingtestsfixturesbook ' ,
421424 'genealabslaravelmodelcachingtestsfixturesprofile ' ,
422425 ];
423426
424- $ cachedResults = cache ()->tags ($ tags )
425- ->get ($ key )
426- ->name ;
427-
428- $ liveResults = (new UncachedAuthor )->with ('books ' , 'profile ' )
427+ $ cachedResult = cache ()->tags ($ tags )
428+ ->get ($ key );
429+ $ liveResult = (new UncachedAuthor )->with ('books ' , 'profile ' )
429430 ->value ('name ' );
430431
431- $ this ->assertEquals ($ authors , $ cachedResults );
432- $ this ->assertEquals ($ liveResults , $ cachedResults );
432+ $ this ->assertEquals ($ authorName , $ cachedResult );
433+ $ this ->assertEquals ($ authorName , $ liveResult );
433434 }
434435
435436 public function testNestedRelationshipEagerLoading ()
0 commit comments