Skip to content


CakeSchemaTest: Skip testSchemaReadWithConfigPrefix test if an existing prefix has been set #352

merged 1 commit into from

2 participants


I get 1 fail on the CakeSchema test if I have an existing prefix set on my test datasource. This will skip the test as done on with the other tests on prefixes.

@markstory markstory merged commit ba81754 into cakephp:2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 4, 2011
  1. @shama
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Test/Case/Model/CakeSchemaTest.php
3 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));
Something went wrong with that request. Please try again.