Commit 500ec800 authored by flip111's avatar flip111

Adjusted test CreateSchemaSqlCollectorTest::testGetQueriesForPsql the

default schema name is public for postgresql not default. Added debug
statements to test travis-CI.
parent a4686edf
......@@ -107,7 +107,7 @@ class CreateSchemaSqlCollector extends AbstractVisitor
{
$namespace = $asset->getNamespaceName();
if ( !isset($namespace)) {
if ( !isset($namespace)) {var_dump(get_class($this->platform));
$namespace = $this->platform->getDefaultSchemaName();
}
......
......@@ -32,6 +32,6 @@ class CreateSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase
$sqlCollector = new CreateSchemaSqlCollector($platformMock);
$sqlCollector->acceptTable($tableMock);
$sql = $sqlCollector->getQueries();
$this->assertEquals('CREATE SCHEMA default', $sql[0]);
$this->assertEquals('CREATE SCHEMA public', $sql[0]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment