Update test code.

This commit is contained in:
James Cole
2018-05-11 19:58:10 +02:00
parent 9bb4df4cc3
commit 4d6bc55723
174 changed files with 2138 additions and 940 deletions

View File

@@ -49,7 +49,7 @@ class IntroControllerTest extends TestCase
* @covers \FireflyIII\Http\Controllers\Json\IntroController::getSpecificSteps
* @covers \FireflyIII\Http\Controllers\Json\IntroController::hasOutroStep
*/
public function testGetIntroSteps()
public function testGetIntroSteps(): void
{
$this->be($this->user());
$response = $this->get(route('json.intro', ['index']));
@@ -62,7 +62,7 @@ class IntroControllerTest extends TestCase
* @covers \FireflyIII\Http\Controllers\Json\IntroController::getSpecificSteps
* @covers \FireflyIII\Http\Controllers\Json\IntroController::hasOutroStep
*/
public function testGetIntroStepsAsset()
public function testGetIntroStepsAsset(): void
{
$this->be($this->user());
$response = $this->get(route('json.intro', ['accounts_create', 'asset']));
@@ -75,7 +75,7 @@ class IntroControllerTest extends TestCase
* @covers \FireflyIII\Http\Controllers\Json\IntroController::getSpecificSteps
* @covers \FireflyIII\Http\Controllers\Json\IntroController::hasOutroStep
*/
public function testGetIntroStepsOutro()
public function testGetIntroStepsOutro(): void
{
$this->be($this->user());
$response = $this->get(route('json.intro', ['reports_report', 'category']));
@@ -85,7 +85,7 @@ class IntroControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\Json\IntroController::postEnable
*/
public function testPostEnable()
public function testPostEnable(): void
{
$this->be($this->user());
$response = $this->post(route('json.intro.enable', ['accounts_create', 'asset']));
@@ -95,7 +95,7 @@ class IntroControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\Json\IntroController::postFinished
*/
public function testPostFinished()
public function testPostFinished(): void
{
$this->be($this->user());
$response = $this->post(route('json.intro.finished', ['accounts_create', 'asset']));