Files
firefly-iii/app/tests/controllers/HomeControllerTest.php

23 lines
390 B
PHP
Raw Normal View History

2014-07-03 09:43:12 +02:00
<?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();
}
}