Some new tests

This commit is contained in:
James Cole
2016-01-23 16:48:34 +01:00
parent 99d14e8cbe
commit 935dc3ff9f
2 changed files with 74 additions and 45 deletions

View File

@@ -16,13 +16,23 @@ class HelpControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\HelpController::show
* @todo Implement testShow().
*/
public function testShow()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$response = $this->call('GET', '/help/index');
$this->assertEquals(200, $response->status());
}
/**
* @covers FireflyIII\Http\Controllers\HelpController::show
*/
public function testShowNoRoute()
{
$this->be($this->user());
$response = $this->call('GET', '/help/indxxex');
$this->assertEquals(200, $response->status());
}
}