Commit ec6fe3c4 authored by Viral Solani's avatar Viral Solani Committed by StyleCI Bot

Apply fixes from StyleCI

parent cbd80804
...@@ -88,7 +88,6 @@ class UserRepository extends BaseRepository ...@@ -88,7 +88,6 @@ class UserRepository extends BaseRepository
*/ */
public function create(array $data, $provider = false) public function create(array $data, $provider = false)
{ {
$user = self::MODEL; $user = self::MODEL;
$user = new $user(); $user = new $user();
$user->first_name = $data['first_name']; $user->first_name = $data['first_name'];
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
namespace Tests\Feature; namespace Tests\Feature;
use Tests\BrowserKitTestCase; use App\Events\Frontend\Auth\UserRegistered;
use App\Models\Access\User\User; use App\Models\Access\User\User;
use App\Notifications\Frontend\Auth\UserNeedsConfirmation;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use App\Events\Frontend\Auth\UserRegistered;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use App\Notifications\Frontend\Auth\UserNeedsConfirmation; use Tests\BrowserKitTestCase;
class RegistrationTest extends BrowserKitTestCase class RegistrationTest extends BrowserKitTestCase
{ {
...@@ -80,7 +80,7 @@ class RegistrationTest extends BrowserKitTestCase ...@@ -80,7 +80,7 @@ class RegistrationTest extends BrowserKitTestCase
* ensure they are registered but not confirmed. * ensure they are registered but not confirmed.
*/ */
/** @test */ /** @test */
public function registration_for_pending_approval() public function registration_for_pending_approval()
{ {
Event::fake(); Event::fake();
...@@ -90,7 +90,7 @@ class RegistrationTest extends BrowserKitTestCase ...@@ -90,7 +90,7 @@ class RegistrationTest extends BrowserKitTestCase
config(['access.users.confirm_email' => false]); config(['access.users.confirm_email' => false]);
config(['access.users.requires_approval' => true]); config(['access.users.requires_approval' => true]);
$this->visit('/register') $this->visit('/register')
->type('first name', 'first_name') ->type('first name', 'first_name')
->type('last name', 'last_name') ->type('last name', 'last_name')
->type('test@example.com', 'email') ->type('test@example.com', 'email')
...@@ -103,10 +103,10 @@ class RegistrationTest extends BrowserKitTestCase ...@@ -103,10 +103,10 @@ class RegistrationTest extends BrowserKitTestCase
->seePageIs('/') ->seePageIs('/')
->seeInDatabase(config('access.users_table'), ->seeInDatabase(config('access.users_table'),
[ [
'email' => 'test@example.com', 'email' => 'test@example.com',
'first_name' => 'first name', 'first_name' => 'first name',
'last_name' => 'last name', 'last_name' => 'last name',
'confirmed' => 0, 'confirmed' => 0,
]); ]);
// Get the user that was inserted into the database // Get the user that was inserted into the database
......
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