diff --git a/tests/_support/DatabaseTestCase.php b/tests/_support/DatabaseTestCase.php index e7bfdbd..ca8741d 100644 --- a/tests/_support/DatabaseTestCase.php +++ b/tests/_support/DatabaseTestCase.php @@ -76,8 +76,8 @@ public function tearDown(): void parent::tearDown(); $this->schemas->reset(); - unset($this->schema); unset($this->handler); + cache()->clean(); } } diff --git a/tests/_support/UnitTestCase.php b/tests/_support/UnitTestCase.php index a671c8b..a99ccc6 100644 --- a/tests/_support/UnitTestCase.php +++ b/tests/_support/UnitTestCase.php @@ -81,7 +81,7 @@ public function tearDown(): void parent::tearDown(); $this->schemas->reset(); - unset($this->schema); + cache()->clean(); } } diff --git a/tests/archive/CacheArchiverTest.php b/tests/archive/CacheArchiverTest.php index 4f8fa57..d2d318a 100644 --- a/tests/archive/CacheArchiverTest.php +++ b/tests/archive/CacheArchiverTest.php @@ -18,7 +18,7 @@ public function setUp(): void public function testGetKeyUsesEnvironment() { - $this->assertEquals('schema:testing', $this->handler->getKey()); + $this->assertEquals('schema-testing', $this->handler->getKey()); } public function testSetKeyChangesKey() @@ -58,7 +58,7 @@ public function testArchiveStoresEachTable() foreach ($tables as $tableName => $table) { - $this->assertEquals($table, $this->cache->get($key . ':' . $tableName)); + $this->assertEquals($table, $this->cache->get($key . '-' . $tableName)); } } diff --git a/tests/service/LiveTest.php b/tests/service/LiveTest.php index 00a0024..e9c7a5a 100644 --- a/tests/service/LiveTest.php +++ b/tests/service/LiveTest.php @@ -17,7 +17,7 @@ public function testDatabaseToCache() $this->assertEmpty($this->schemas->getErrors()); $schemaFromService = $this->schemas->get(); - $schemaFromCache = $cache->get('schema:testing'); + $schemaFromCache = $cache->get('schema-testing'); $this->assertEquals(count($schemaFromCache->tables), count($schemaFromService->tables)); $this->assertObjectHasAttribute('factories', $schemaFromCache->tables);