diff --git a/tests/Integration/CachedBuilder/WhereInRawTest.php b/tests/Integration/CachedBuilder/WhereInRawTest.php new file mode 100644 index 0000000..fedcd3b --- /dev/null +++ b/tests/Integration/CachedBuilder/WhereInRawTest.php @@ -0,0 +1,42 @@ +with("books") + ->get(); + $cachedResults = $this + ->cache() + ->tags($tags) + ->get($key)['value']; + $liveResults = (new UncachedAuthor) + ->with("books") + ->get(); + + $this->assertEquals($liveResults->pluck("id"), $authors->pluck("id")); + $this->assertEquals($liveResults->pluck("id"), $cachedResults->pluck("id")); + } +} diff --git a/tests/Integration/CachedBuilder/WhereInTest.php b/tests/Integration/CachedBuilder/WhereInTest.php index f342f6c..ff62faf 100644 --- a/tests/Integration/CachedBuilder/WhereInTest.php +++ b/tests/Integration/CachedBuilder/WhereInTest.php @@ -17,8 +17,6 @@ class WhereInTest extends IntegrationTestCase { - - public function testWithInUsingCollectionQuery() { $key = sha1('genealabs:laravel-model-caching:testing::memory::genealabslaravelmodelcachingtestsfixturesbook-author_id_in_1_2_3_4');