Commit 7d408fc3 authored by Steve Müller's avatar Steve Müller

rebase platform tests

parent edf42f11
...@@ -109,6 +109,30 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase ...@@ -109,6 +109,30 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
); );
} }
public function testGetCreateSchemaSQL()
{
$schemaName = 'schema';
$sql = $this->_platform->getCreateSchemaSQL($schemaName);
$this->assertEquals('CREATE SCHEMA AUTHORIZATION ' . $schemaName, $sql);
}
public function testReturnsDefaultSchemaName()
{
$this->assertSame('DBA', $this->_platform->getDefaultSchemaName());
}
public function testSchemaNeedsCreation()
{
$schemaNames = array(
'DBA' => false,
'schema' => true,
);
foreach ($schemaNames as $name => $expected) {
$actual = $this->_platform->schemaNeedsCreation($name);
$this->assertEquals($expected, $actual);
}
}
public function testHasCorrectPlatformName() public function testHasCorrectPlatformName()
{ {
$this->assertEquals('sqlanywhere', $this->_platform->getName()); $this->assertEquals('sqlanywhere', $this->_platform->getName());
......
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