Skip to content

Commit

Permalink
Update tests for cache name change
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jul 13, 2020
1 parent 381708d commit ee00df6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/_support/DatabaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function tearDown(): void
parent::tearDown();

$this->schemas->reset();

unset($this->schema);
unset($this->handler);
cache()->clean();
}
}
2 changes: 1 addition & 1 deletion tests/_support/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function tearDown(): void
parent::tearDown();

$this->schemas->reset();

unset($this->schema);
cache()->clean();
}
}
4 changes: 2 additions & 2 deletions tests/archive/CacheArchiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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));
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/service/LiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee00df6

Please sign in to comment.