Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12943984
AuthViewsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
AuthViewsTest.php
View Options
<?php
namespace
AuthGrove\Tests
;
/**
* Test authentication views with GET request and form title checks.
*
* A test failure means an auth view is broken.
*/
class
AuthViewsTest
extends
TestCase
{
/**
* Tests the sign in view
*/
public
function
testSignInView
()
{
$this
->
visit
(
'/'
)
->
see
(
'form-signin'
);
}
/**
* Tests the register account view
*/
public
function
testRegisterAccountView
()
{
$this
->
visit
(
'/auth/register'
)
->
see
(
'form-register'
);
}
/**
* Tests the recover access view
*/
public
function
testRecoverAccessView
()
{
$this
->
visit
(
'/auth/recover'
)
->
see
(
'form-recover'
);
}
/**
* Tests the lack of reset password view without token
*/
public
function
testResetPasswordViewWithoutToken
()
{
$response
=
$this
->
call
(
'GET'
,
'/auth/reset'
);
$this
->
assertEquals
(
404
,
$response
->
getStatusCode
());
}
/**
* Tests the reset password view
*/
public
function
testResetPasswordView
()
{
$this
->
visit
(
'/auth/reset/foo'
)
->
see
(
'form-reset'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 17:01 (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3166765
Default Alt Text
AuthViewsTest.php (1 KB)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment