mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-28 22:26:22 +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();
|
|
}
|
|
|
|
}
|