From a86412af097c592a1dc4e4c40cfc85e03247e552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 14 Mar 2020 19:22:08 +0100 Subject: [PATCH] Enable cache in the single test file --- tests/CachedResolverTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CachedResolverTest.php b/tests/CachedResolverTest.php index b5ba761a..903539fd 100644 --- a/tests/CachedResolverTest.php +++ b/tests/CachedResolverTest.php @@ -20,6 +20,8 @@ class CachedResolverTest extends TestCase if (config('tenancy.storage_driver') !== 'db') { $this->markTestSkipped('This test is only relevant for the DB storage driver.'); } + + config(['tenancy.storage_drivers.db.cache_store' => null]); // default driver } /** @test */ @@ -36,6 +38,7 @@ class CachedResolverTest extends TestCase $this->assertSame($tenant->domains, $queried->domains); // cache is set + $this->assertEquals($tenant->id, Cache::get('_tenancy_domain_to_id:foo.localhost')); $this->assertEquals($tenant->data, Cache::get('_tenancy_id_to_data:' . $tenant->id)); $this->assertSame($tenant->domains, Cache::get('_tenancy_id_to_domains:' . $tenant->id));