Skip to content

Commit

Permalink
Skip testSchemaReadWithConfigPrefix test if an existing prefix has al…
Browse files Browse the repository at this point in the history
…ready been set
  • Loading branch information
shama committed Dec 4, 2011
1 parent 1bc3583 commit 42583ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Test/Case/Model/CakeSchemaTest.php
Expand Up @@ -640,8 +640,11 @@ public function testSchemaReadWithTablePrefix() {
*/
public function testSchemaReadWithConfigPrefix() {
$this->skipIf($this->db instanceof Sqlite, 'Cannot open 2 connections to Sqlite');

$db = ConnectionManager::getDataSource('test');
$config = $db->config;
$this->skipIf(!empty($config['prefix']), 'This test can not be executed with datasource prefix set.');

$config['prefix'] = 'schema_test_prefix_';
ConnectionManager::create('schema_prefix', $config);
$read = $this->Schema->read(array('connection' => 'schema_prefix', 'models' => false));
Expand Down

0 comments on commit 42583ff

Please sign in to comment.