1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/ExportOracleTestCase.php
2006-11-22 23:35:34 +00:00

27 lines
811 B
PHP

<?php
class Doctrine_Export_Oracle_TestCase extends Doctrine_Export_TestCase {
public function __construct() {
parent::__construct('oci');
}
public function testCreateSequenceExecutesSql() {
$sequenceName = 'sequence';
$start = 1;
$query = 'CREATE SEQUENCE ' . $sequenceName . ' START WITH ' . $start . ' INCREMENT BY 1 NOCACHE';
$this->export->createSequence($sequenceName, $start);
$this->assertEqual($this->adapter->pop(), $query);
}
public function testDropSequenceExecutesSql() {
$sequenceName = 'sequence';
$query = 'DROP SEQUENCE ' . $sequenceName;;
$this->export->dropSequence($sequenceName);
$this->assertEqual($this->adapter->pop(), $query);
}
}
?>