1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests/ExportPgsqlTestCase.php

19 lines
534 B
PHP
Raw Normal View History

2006-11-22 03:19:23 +03:00
<?php
class Doctrine_Export_Pgsql_TestCase extends Doctrine_Export_TestCase {
2006-11-22 03:19:23 +03:00
public function __construct() {
parent::__construct('pgsql');
}
public function testCreateDatabaseExecutesSql() {
$this->export->createDatabase('db');
2006-11-22 03:19:23 +03:00
$this->assertEqual($this->adapter->pop(), 'CREATE DATABASE db');
2006-11-22 03:19:23 +03:00
}
public function testDropDatabaseExecutesSql() {
$this->export->dropDatabase('db');
2006-11-22 03:19:23 +03:00
$this->assertEqual($this->adapter->pop(), 'DROP DATABASE db');
2006-11-22 03:19:23 +03:00
}
}
?>