26 lines
596 B
PHP
26 lines
596 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace BeyondCode\LaravelWebSockets\Tests\Dashboard;
|
||
|
|
|
||
|
|
use BeyondCode\LaravelWebSockets\Tests\TestCase;
|
||
|
|
|
||
|
|
class DashboardTest extends TestCase
|
||
|
|
{
|
||
|
|
/** @test */
|
||
|
|
public function cant_see_dashboard_without_authorization()
|
||
|
|
{
|
||
|
|
config(['app.env' => 'production']);
|
||
|
|
|
||
|
|
$this->get(route('laravel-websockets.dashboard'))
|
||
|
|
->assertResponseStatus(403);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** @test */
|
||
|
|
public function can_see_dashboard()
|
||
|
|
{
|
||
|
|
$this->get(route('laravel-websockets.dashboard'))
|
||
|
|
->assertResponseOk()
|
||
|
|
->see('WebSockets Dashboard');
|
||
|
|
}
|
||
|
|
}
|