Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
No longer need to run Artisan migrate.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 15, 2016
1 parent 56366c0 commit 5cfe085
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/OptimizeServiceProviderTest.php
Expand Up @@ -23,18 +23,14 @@ public function testRegisterMethod()
{
$app = m::mock('\Illuminate\Container\Container[basePath]');
$config = m::mock('\Illuminate\Contracts\Config\Repository');
$events = m::mock('\Illuminate\Contracts\Events\Dispatcher');
$files = m::mock('\Illuminate\Filesystem\Filesystem');

$app->instance('config', $config);
$app->instance('events', $events);
$app->instance('files', $files);

$app->shouldReceive('basePath')->once()->andReturn('/var/www/laravel');

$files->shouldReceive('getRequire')->once()->andReturn([]);
$events->shouldReceive('listen')->once()
->with('Illuminate\Console\Events\ArtisanStarting', m::type('Closure'))->andReturn(null);

$stub = new OptimizeServiceProvider($app);

Expand Down

0 comments on commit 5cfe085

Please sign in to comment.