From fea03520c83d3ec38bfd6209e3f837e20d26f4e6 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 5 Aug 2014 18:58:33 -0400 Subject: [PATCH] Reconfigured database username Seems @travis-ci did make some changes as per their blog. Updated code to use the username `root` for connections instead of no user. --- .travis.yml | 4 ++-- tests/classes/DatabaseTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 923e059..2fd4d5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,8 +33,8 @@ before_script: - echo "[uopz]" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - echo "uopz.overloads=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - cat ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - - mysql -e 'create database test;' - - mysql test < tests/schema.sql + - mysql -e "create database IF NOT EXISTS test;" -u root + - mysql test < tests/schema.sql -u root - mkdir -p build/logs script: diff --git a/tests/classes/DatabaseTest.php b/tests/classes/DatabaseTest.php index d0a8254..a94f237 100644 --- a/tests/classes/DatabaseTest.php +++ b/tests/classes/DatabaseTest.php @@ -59,7 +59,7 @@ class DatabaseTest extends PHPUnit_Framework_TestCase 'type' => 'mysql', 'driver' => 'pdo_mysql', 'hostname' => 'localhost', - 'username' => '', + 'username' => 'root', 'password' => '', 'database' => 'test', ],