mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 04:46:44 +00:00
23 lines
390 B
PHP
23 lines
390 B
PHP
![]() |
<?php
|
||
|
|
||
|
class HomeControllerTest extends TestCase
|
||
|
{
|
||
|
public function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
}
|
||
|
|
||
|
public function testIndex()
|
||
|
{
|
||
|
// mock:
|
||
|
View::shouldReceive('make')->with('index');
|
||
|
Auth::shouldReceive('check')->andReturn(true);
|
||
|
|
||
|
// call
|
||
|
$this->call('GET', '/');
|
||
|
|
||
|
// test
|
||
|
$this->assertResponseOk();
|
||
|
}
|
||
|
|
||
|
}
|