Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120824001
HorizonTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
734 B
Referenced Files
None
Subscribers
None
HorizonTest.php
View Options
<?php
namespace
Tests\Feature\Controller
;
use
Tests\TestCase
;
class
HorizonTest
extends
TestCase
{
public
function
testAdminAccess
()
{
if
(!
file_exists
(
'public/vendor/horizon/mix-manifest.json'
))
{
$this
->
markTestSkipped
();
}
$this
->
useAdminUrl
();
$response
=
$this
->
get
(
'horizon/dashboard'
);
$response
->
assertStatus
(
200
);
}
public
function
testRegularAccess
()
{
if
(!
file_exists
(
'public/vendor/horizon/mix-manifest.json'
))
{
$this
->
markTestSkipped
();
}
$this
->
useRegularUrl
();
$response
=
$this
->
get
(
'horizon/dashboard'
);
// TODO: We should make it 404
$response
->
assertStatus
(
200
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:15 AM (2 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18856088
Default Alt Text
HorizonTest.php (734 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline