firefly-iii/app/tests/controllers/MigrationControllerTest.php
2014-07-08 08:07:15 +02:00

27 lines
461 B
PHP

<?php
class MigrationControllerTest extends TestCase
{
public function setUp()
{
parent::setUp();
}
public function testIndex()
{
// mock:
View::shouldReceive('share');
View::shouldReceive('make')->with('migrate.index');
// call
$this->call('GET', '/migrate');
// test
$this->assertResponseOk();
}
public function tearDown()
{
Mockery::close();
}
}