Skip to content

Commit

Permalink
Skiping the connection tests in sqlite, for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 30, 2014
1 parent b3c9f2b commit a84246b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Database/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a84246b

Please sign in to comment.