Skip to content

Commit ee00df6

Browse files
committed
Update tests for cache name change
1 parent 381708d commit ee00df6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/_support/DatabaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function tearDown(): void
7676
parent::tearDown();
7777

7878
$this->schemas->reset();
79-
8079
unset($this->schema);
8180
unset($this->handler);
81+
cache()->clean();
8282
}
8383
}

tests/_support/UnitTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function tearDown(): void
8181
parent::tearDown();
8282

8383
$this->schemas->reset();
84-
8584
unset($this->schema);
85+
cache()->clean();
8686
}
8787
}

tests/archive/CacheArchiverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function setUp(): void
1818

1919
public function testGetKeyUsesEnvironment()
2020
{
21-
$this->assertEquals('schema:testing', $this->handler->getKey());
21+
$this->assertEquals('schema-testing', $this->handler->getKey());
2222
}
2323

2424
public function testSetKeyChangesKey()
@@ -58,7 +58,7 @@ public function testArchiveStoresEachTable()
5858

5959
foreach ($tables as $tableName => $table)
6060
{
61-
$this->assertEquals($table, $this->cache->get($key . ':' . $tableName));
61+
$this->assertEquals($table, $this->cache->get($key . '-' . $tableName));
6262
}
6363
}
6464

tests/service/LiveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testDatabaseToCache()
1717
$this->assertEmpty($this->schemas->getErrors());
1818

1919
$schemaFromService = $this->schemas->get();
20-
$schemaFromCache = $cache->get('schema:testing');
20+
$schemaFromCache = $cache->get('schema-testing');
2121
$this->assertEquals(count($schemaFromCache->tables), count($schemaFromService->tables));
2222

2323
$this->assertObjectHasAttribute('factories', $schemaFromCache->tables);

0 commit comments

Comments
 (0)