From 655ee6b85a49a9dd37701f82798ddf3eb3d246b7 Mon Sep 17 00:00:00 2001 From: Christian Schorn Date: Wed, 31 Oct 2012 18:21:52 +0100 Subject: [PATCH] Make unit tests use new configuration constructor --- tests/InterfaceTest.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/InterfaceTest.php b/tests/InterfaceTest.php index 95c8b86..d56f6b2 100644 --- a/tests/InterfaceTest.php +++ b/tests/InterfaceTest.php @@ -7,6 +7,7 @@ use Gitter\Client; class InterfaceTest extends WebTestCase { protected static $tmpdir; + protected static $git_path; public static function setUpBeforeClass() { @@ -31,6 +32,8 @@ class InterfaceTest extends WebTestCase $options['hidden'] = array(self::$tmpdir . '/hiddenrepo'); $git = new Client($options); + self::$git_path = $options['path']; + // GitTest repository fixture $git->createRepository(self::$tmpdir . 'GitTest'); $repository = $git->getRepository(self::$tmpdir . 'GitTest'); @@ -61,9 +64,16 @@ class InterfaceTest extends WebTestCase public function createApplication() { + $config = new \GitList\Config(array( + 'git' => array( + 'client' => self::$git_path, + 'repositories' => self::$tmpdir, + ), + 'app' => array( + 'debug' => true, + ), + )); $app = require 'boot.php'; - $app['debug'] = true; - $app['git.repos'] = self::$tmpdir; return $app; }