1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/ExportOracleTestCase.php

27 lines
811 B
PHP
Raw Normal View History

2006-11-23 02:35:34 +03:00
<?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);
}
}
?>