mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 12:47:00 +00:00
New test.
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
*
|
*
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
use FireflyIII\Helpers\Help\HelpInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,21 +29,17 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
* Implement testShow().
|
|
||||||
*/
|
*/
|
||||||
public function testShow()
|
public function testShow()
|
||||||
{
|
{
|
||||||
// Remove the following lines when you implement this test.
|
$help = $this->mock(HelpInterface::class);
|
||||||
$this->markTestIncomplete(
|
$help->shouldReceive('hasRoute')->andReturn(true)->once();
|
||||||
'This test has not been implemented yet.'
|
$help->shouldReceive('inCache')->andReturn(false)->once();
|
||||||
);
|
$help->shouldReceive('getFromGithub')->andReturn('Help content here.')->once();
|
||||||
}
|
$help->shouldReceive('putInCache')->once();
|
||||||
|
|
||||||
/**
|
$this->be($this->user());
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
$this->call('GET', route('help.show', ['index']));
|
||||||
* This method is called after a test is executed.
|
$this->assertResponseStatus(200);
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user