Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
martiendt authored and StyleCIBot committed Jun 5, 2018
1 parent bb6962e commit 9b9dea6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/Console/Commands/SetupTenantDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Artisan;

class SetupTenantDatabase extends Command
Expand Down
2 changes: 1 addition & 1 deletion tests/CreatesApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Tests;

use Illuminate\Contracts\Console\Kernel;
use Illuminate\Support\Facades\Hash;
use Illuminate\Contracts\Console\Kernel;

trait CreatesApplication
{
Expand Down
6 changes: 2 additions & 4 deletions tests/Feature/Master/UserRESTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Tests\Feature\Master;

use App\User;
use Illuminate\Database\ConnectionResolver;
use Illuminate\Support\Facades\Artisan;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;

Expand Down Expand Up @@ -64,7 +62,7 @@ public function an_user_can_read_all_user()
$response->assertStatus(200);
}

/** @test */
/* @test */
// public function an_user_can_update_user()
// {
// $data = [
Expand All @@ -82,7 +80,7 @@ public function an_user_can_read_all_user()
// $response->assertStatus(200);
// }

/** @test */
/* @test */
// public function an_user_can_delete_user()
// {
// $response = $this->json('DELETE', 'api/v1/master/users/'.$this->user->id, [], [$this->headers]);
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Tests;

use App\User;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
Expand All @@ -26,12 +26,12 @@ public function setUp()
$this->getConnection(DB::getDefaultConnection())->disconnect();

$this->artisan('tenant:setup-database', [
'tenant_subdomain' => 'database/databaseTenant.sqlite'
'tenant_subdomain' => 'database/databaseTenant.sqlite',
]);

$this->headers = [
'Accept' => 'application/json',
'Content-Type' => 'application/json'
'Content-Type' => 'application/json',
];
}

Expand Down

0 comments on commit 9b9dea6

Please sign in to comment.