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
ecf5c431
Unverified
Commit
ecf5c431
authored
Dec 26, 2017
by
Viral Solani
Committed by
GitHub
Dec 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #106 from viralsolani/analysis-qMDg2L
Apply fixes from StyleCI
parents
cbd80804
ec6fe3c4
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 @
ecf5c431
...
...
@@ -88,7 +88,6 @@ class UserRepository extends BaseRepository
*/
public
function
create
(
array
$data
,
$provider
=
false
)
{
$user
=
self
::
MODEL
;
$user
=
new
$user
();
$user
->
first_name
=
$data
[
'first_name'
];
...
...
tests/Feature/RegistrationTest.php
View file @
ecf5c431
...
...
@@ -2,12 +2,12 @@
namespace
Tests\Feature
;
use
Tests\BrowserKitTestCase
;
use
App\Events\Frontend\Auth\UserRegistered
;
use
App\Models\Access\User\User
;
use
App\Notifications\Frontend\Auth\UserNeedsConfirmation
;
use
Illuminate\Support\Facades\Event
;
use
App\Events\Frontend\Auth\UserRegistered
;
use
Illuminate\Support\Facades\Notification
;
use
App\Notifications\Frontend\Auth\UserNeedsConfirmation
;
use
Tests\BrowserKitTestCase
;
class
RegistrationTest
extends
BrowserKitTestCase
{
...
...
@@ -80,7 +80,7 @@ class RegistrationTest extends BrowserKitTestCase
* ensure they are registered but not confirmed.
*/
/** @test */
/** @test */
public
function
registration_for_pending_approval
()
{
Event
::
fake
();
...
...
@@ -90,7 +90,7 @@ class RegistrationTest extends BrowserKitTestCase
config
([
'access.users.confirm_email'
=>
false
]);
config
([
'access.users.requires_approval'
=>
true
]);
$this
->
visit
(
'/register'
)
$this
->
visit
(
'/register'
)
->
type
(
'first name'
,
'first_name'
)
->
type
(
'last name'
,
'last_name'
)
->
type
(
'test@example.com'
,
'email'
)
...
...
@@ -103,10 +103,10 @@ class RegistrationTest extends BrowserKitTestCase
->
seePageIs
(
'/'
)
->
seeInDatabase
(
config
(
'access.users_table'
),
[
'email'
=>
'test@example.com'
,
'email'
=>
'test@example.com'
,
'first_name'
=>
'first name'
,
'last_name'
=>
'last name'
,
'confirmed'
=>
0
,
'last_name'
=>
'last name'
,
'confirmed'
=>
0
,
]);
// 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