Page MenuHomePhorge

HorizonTest.php
No OneTemporary

Authored By
Unknown
Size
734 B
Referenced Files
None
Subscribers
None

HorizonTest.php

<?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

Mime Type
text/x-php
Expires
Fri, Apr 24, 10:15 AM (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18856088
Default Alt Text
HorizonTest.php (734 B)

Event Timeline