Unverified Commit 813feb99 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #117 from viralsolani/analysis-Xk695R

Apply fixes from StyleCI
parents ea9e06ea 2eee0c39
<?php <?php
use Faker\Generator; use App\Models\Access\Permission\Permission;
use App\Models\Access\Role\Role; use App\Models\Access\Role\Role;
use App\Models\Access\User\User; use App\Models\Access\User\User;
use App\Models\Access\Permission\Permission; use Faker\Generator;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -76,6 +76,7 @@ $factory->state(Role::class, 'admin', function () { ...@@ -76,6 +76,7 @@ $factory->state(Role::class, 'admin', function () {
$factory->define(Permission::class, function (Generator $faker) { $factory->define(Permission::class, function (Generator $faker) {
$name = $faker->word; $name = $faker->word;
return [ return [
'name' => $name, 'name' => $name,
'display_name' => $name, 'display_name' => $name,
......
<?php <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNullConstraintOnCreatedByOnRoleTable extends Migration class AddNullConstraintOnCreatedByOnRoleTable extends Migration
{ {
......
<?php <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNullConstraintOnCreatedByOnPermissionTable extends Migration class AddNullConstraintOnCreatedByOnPermissionTable extends Migration
{ {
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
namespace Tests\Feature\Backend; namespace Tests\Feature\Backend;
use Tests\TestCase; use App\Models\Access\Permission\Permission;
use App\Models\Access\Role\Role; use App\Models\Access\Role\Role;
use App\Models\Access\User\User; use App\Models\Access\User\User;
use App\Models\Access\Permission\Permission; use Tests\TestCase;
class ManageUsersTest extends TestCase class ManageUsersTest extends TestCase
{ {
...@@ -62,7 +62,7 @@ class ManageUsersTest extends TestCase ...@@ -62,7 +62,7 @@ class ManageUsersTest extends TestCase
/** @test */ /** @test */
public function a_user_can_create_new_user() public function a_user_can_create_new_user()
{ {
$user = factory(User::class)->states('active','confirmed')->make()->toArray(); $user = factory(User::class)->states('active', 'confirmed')->make()->toArray();
$role = create(Role::class); $role = create(Role::class);
$permission = create(Permission::class); $permission = create(Permission::class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment