Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
ec6fe3c4
Commit
ec6fe3c4
authored
Dec 25, 2017
by
Viral Solani
Committed by
StyleCI Bot
Dec 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
cbd80804
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
UserRepository.php
app/Repositories/Frontend/Access/User/UserRepository.php
+0
-1
RegistrationTest.php
tests/Feature/RegistrationTest.php
+8
-8
No files found.
app/Repositories/Frontend/Access/User/UserRepository.php
View file @
ec6fe3c4
...
@@ -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'
];
...
...
tests/Feature/RegistrationTest.php
View file @
ec6fe3c4
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment