Skip to content

Commit

Permalink
Support Laravel 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hariadi committed Oct 9, 2019
1 parent e5b0e48 commit 2df6f13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
}
],
"require": {
"illuminate/console": "^5.7",
"illuminate/support": "^5.7",
"illuminate/filesystem": "^5.7"
"illuminate/console": "5.7.*|5.8.*|^6.0",
"illuminate/support": "5.7.*|5.8.*|^6.0",
"illuminate/filesystem": "5.7.*|5.8.*|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
24 changes: 12 additions & 12 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ abstract class TestCase extends Orchestra\Testbench\TestCase
{
protected $consoleOutput;

protected function getPackageProviders($app)
{
return [\Hariadi\Boilerplate\GeneratorCommandServiceProvider::class];
}

protected function getEnvironmentSetUp($app)
{
$app['config']->set('generator.path', __DIR__.'/temp');
}

public function setUp()
public function setUp(): void
{
parent::setUp();
exec('rm -rf '.__DIR__.'/temp/*');
}

public function tearDown()
public function tearDown(): void
{
exec('rm -rf '.__DIR__.'/temp/*');
parent::tearDown();

$this->consoleOutput = '';
}

protected function getPackageProviders($app)
{
return [\Hariadi\Boilerplate\GeneratorCommandServiceProvider::class];
}

protected function getEnvironmentSetUp($app)
{
$app['config']->set('generator.path', __DIR__.'/temp');
}

public function resolveApplicationConsoleKernel($app)
{
$app->singleton('artisan', function ($app) {
Expand Down

0 comments on commit 2df6f13

Please sign in to comment.