From 6fd233d28ef56ef6e4f27eb9121f93fc6935157d Mon Sep 17 00:00:00 2001 From: Martien Dermawan Tanama Date: Tue, 5 Jun 2018 23:01:52 +0700 Subject: [PATCH] Apply fixes from StyleCI (#25) [ci skip] [skip ci] --- app/Console/Commands/SetupTenantDatabase.php | 1 - tests/CreatesApplication.php | 2 +- tests/Feature/Master/UserRESTTest.php | 6 ++---- tests/TestCase.php | 6 +++--- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/Console/Commands/SetupTenantDatabase.php b/app/Console/Commands/SetupTenantDatabase.php index 769a65488..f9596083b 100644 --- a/app/Console/Commands/SetupTenantDatabase.php +++ b/app/Console/Commands/SetupTenantDatabase.php @@ -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 diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php index 60a3e8ca2..ff133fb4d 100644 --- a/tests/CreatesApplication.php +++ b/tests/CreatesApplication.php @@ -2,8 +2,8 @@ namespace Tests; -use Illuminate\Contracts\Console\Kernel; use Illuminate\Support\Facades\Hash; +use Illuminate\Contracts\Console\Kernel; trait CreatesApplication { diff --git a/tests/Feature/Master/UserRESTTest.php b/tests/Feature/Master/UserRESTTest.php index 7e755e34f..17a643620 100644 --- a/tests/Feature/Master/UserRESTTest.php +++ b/tests/Feature/Master/UserRESTTest.php @@ -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; @@ -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 = [ @@ -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]); diff --git a/tests/TestCase.php b/tests/TestCase.php index ced634606..f2fdbeaf7 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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 @@ -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', ]; }