Browse Source

Skiping the connection tests in sqlite, for the time being

Jose Lorenzo Rodriguez 12 years ago
parent
commit
a84246b44a
2 changed files with 3 additions and 2 deletions
  1. 1 1
      .travis.yml
  2. 2 1
      tests/TestCase/Database/ConnectionTest.php

+ 1 - 1
.travis.yml

@@ -7,7 +7,7 @@ php:
 env:
   - DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
   - DB=pgsql db_class='Cake\Database\Driver\Postgres' db_dsn='pgsql:host=127.0.0.1;dbname=cakephp_test' db_database="cakephp_test" db_login='postgres' db_password=''
-  - DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite:/tmp/cake.db'
+  - DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'
 
 services:
   - memcached

+ 2 - 1
tests/TestCase/Database/ConnectionTest.php

@@ -27,8 +27,9 @@ class ConnectionTest extends TestCase {
 	public $fixtures = ['core.thing'];
 
 	public function setUp() {
-		parent::setUp();
 		$this->connection = ConnectionManager::get('test');
+		$this->skipIf($this->connection()->driver() instanceof \Cake\Database\Driver\Sqlite);
+		parent::setUp();
 	}
 
 	public function tearDown() {