Permalink
Browse files

Skip testSchemaReadWithConfigPrefix test if an existing prefix has al…

…ready been set
  • Loading branch information...
1 parent 1bc3583 commit 42583ff6a586403333f746802b69dabd3cc9333d @shama shama committed Dec 4, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -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));

0 comments on commit 42583ff

Please sign in to comment.