Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding drop statements so tables aren't left in the test db.

  • Loading branch information...
commit 99095daf5c54879bd92a782a877f02817a7c2f54 1 parent 05f908d
@markstory markstory authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 cake/tests/cases/console/libs/schema.test.php
View
7 cake/tests/cases/console/libs/schema.test.php
@@ -300,6 +300,9 @@ function testRunCreateNoArgs() {
$db =& ConnectionManager::getDataSource('test_suite');
$sources = $db->listSources();
$this->assertTrue(in_array($db->config['prefix'] . 'i18n', $sources));
+
+ $schema =& new i18nSchema();
+ $db->execute($db->dropSchema($schema));
}
/**
@@ -311,7 +314,7 @@ function testRunCreateWithTableArgs() {
$this->Shell->params = array(
'connection' => 'test_suite',
'name' => 'DbAcl',
- 'path' => APP . 'config' . DS . 'sql'
+ 'path' => APP . 'config' . DS . 'schema'
);
$this->Shell->args = array('create', 'acos');
$this->Shell->startup();
@@ -323,6 +326,8 @@ function testRunCreateWithTableArgs() {
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources));
$this->assertFalse(in_array($db->config['prefix'] . 'aros', $sources));
$this->assertFalse(in_array('aros_acos', $sources));
+
+ $db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos');
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.