From ee07d6c5745a6ed6bb44098e0ada0daf69389d9e Mon Sep 17 00:00:00 2001 From: crynobone Date: Mon, 16 Dec 2013 11:24:26 +0800 Subject: [PATCH] Fixed invalid reference to Config facades Signed-off-by: crynobone --- src/Orchestra/Optimize/Compiler.php | 8 ++++---- tests/CompilerTest.php | 2 +- tests/OptimizeServiceProviderTest.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Orchestra/Optimize/Compiler.php b/src/Orchestra/Optimize/Compiler.php index 7c5ee58..6ad2733 100644 --- a/src/Orchestra/Optimize/Compiler.php +++ b/src/Orchestra/Optimize/Compiler.php @@ -1,6 +1,6 @@ config = $config; $this->files = $files; diff --git a/tests/CompilerTest.php b/tests/CompilerTest.php index dfc8178..f4b3130 100644 --- a/tests/CompilerTest.php +++ b/tests/CompilerTest.php @@ -22,7 +22,7 @@ public function tearDown() */ public function testRunMethod() { - $config = m::mock('\Illuminate\Config\FileLoader'); + $config = m::mock('\Illuminate\Config\Repository'); $files = m::mock('\Illuminate\Filesystem\Filesystem'); $path = '/var/www/laravel/vendor'; $components = array( diff --git a/tests/OptimizeServiceProviderTest.php b/tests/OptimizeServiceProviderTest.php index d8fbb02..4a9a9d0 100644 --- a/tests/OptimizeServiceProviderTest.php +++ b/tests/OptimizeServiceProviderTest.php @@ -38,7 +38,7 @@ public function tearDown() public function testRegisterMethod() { $app = $this->app; - $app['config'] = $config = m::mock('\Illuminate\Config\FileLoader'); + $app['config'] = $config = m::mock('\Illuminate\Config\Repository'); $app['events'] = $events = m::mock('\Illuminate\Events\Dispatcher'); $app['files'] = $files = m::mock('\Illuminate\Filesystem\Filesystem'); $app['path.base'] = '/var/www/laravel';