Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Skipping tests on Sqlite that involve creating a duplicate connection…

…/ It is not possible to open multiple connections to it
  • Loading branch information...
commit 12c73806f410122887fca64cd59a6cbeb96f4ea2 1 parent 149deba
@lorenzo lorenzo authored
View
1  lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -649,6 +649,7 @@ public function testSchemaReadWithTablePrefix() {
* @return void
*/
public function testSchemaReadWithConfigPrefix() {
+ $this->skipIf($this->db instanceof Sqlite, 'Cannot open 2 connections to Sqlite');
$db = ConnectionManager::getDataSource('test');
$config = $db->config;
$config['prefix'] = 'schema_test_prefix_';
View
1  lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -339,6 +339,7 @@ public function testPreparedQuery() {
* @return void
*/
public function testParameterMismatch() {
+ $this->skipIf($this->db instanceof Sqlite, 'Sqlite does not accept real prepared statements, no way to check this');
$this->loadFixtures('Article', 'User', 'Tag', 'ArticlesTag');
$Article = new Article();
View
3  lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php
@@ -225,6 +225,7 @@ public function testInit() {
* @return void
*/
public function testInitDbPrefix() {
+ $this->skipIf($this->db instanceof Sqlite, 'Cannot open 2 connections to Sqlite');
$db = ConnectionManager::getDataSource('test');
$Source = new CakeTestFixtureTestFixture();
$Source->drop($db);
@@ -265,6 +266,7 @@ public function testInitDbPrefix() {
* @return void
*/
public function testInitDbPrefixDuplication() {
+ $this->skipIf($this->db instanceof Sqlite, 'Cannot open 2 connections to Sqlite');
$db = ConnectionManager::getDataSource('test');
$backPrefix = $db->config['prefix'];
$db->config['prefix'] = 'cake_fixture_test_';
@@ -294,6 +296,7 @@ public function testInitDbPrefixDuplication() {
* @return void
*/
public function testInitModelTablePrefix() {
+ $this->skipIf($this->db instanceof Sqlite, 'Cannot open 2 connections to Sqlite');
$this->skipIf(!empty($this->db->config['prefix']), 'Cannot run this test, you have a database connection prefix.');
$Source = new CakeTestFixtureTestFixture();
Please sign in to comment.
Something went wrong with that request. Please try again.