2006-10-19 20:56:59 +00:00
|
|
|
<?php
|
2006-11-22 00:26:34 +00:00
|
|
|
class Doctrine_Export_Mysql_TestCase extends Doctrine_Export_TestCase {
|
2006-11-22 00:18:33 +00:00
|
|
|
public function __construct() {
|
|
|
|
parent::__construct('mysql');
|
2006-11-22 00:26:34 +00:00
|
|
|
}
|
2006-11-22 00:18:33 +00:00
|
|
|
public function testCreateDatabaseExecutesSql() {
|
|
|
|
$this->export->createDatabase('db');
|
|
|
|
|
|
|
|
$this->assertEqual($this->adapter->pop(), 'CREATE DATABASE db');
|
|
|
|
}
|
|
|
|
public function testDropDatabaseExecutesSql() {
|
|
|
|
$this->export->dropDatabase('db');
|
|
|
|
|
|
|
|
$this->assertEqual($this->adapter->pop(), 'DROP DATABASE db');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testDropIndexExecutesSql() {
|
|
|
|
$this->export->dropIndex('sometable', 'relevancy');
|
|
|
|
|
|
|
|
$this->assertEqual($this->adapter->pop(), 'DROP INDEX relevancy ON sometable');
|
|
|
|
}
|
2006-10-19 20:56:59 +00:00
|
|
|
}
|
|
|
|
?>
|