|
|
@@ -640,8 +640,11 @@ class CakeSchemaTest extends CakeTestCase {
|
|
|
*/
|
|
|
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));
|