Fix test method names.

This commit is contained in:
James Cole
2018-09-02 20:27:26 +02:00
parent de754ca4e0
commit eaf2667abb
90 changed files with 675 additions and 676 deletions

View File

@@ -33,6 +33,20 @@ use Tests\TestCase;
*/
class IsSandstormUserTest extends TestCase
{
/**
* Set up test
*/
public function setUp(): void
{
parent::setUp();
Route::middleware(IsSandStormUser::class)->any(
'/_test/is-sandstorm', function () {
return 'OK';
}
);
}
/**
* @covers \FireflyIII\Http\Middleware\IsSandStormUser
*/
@@ -69,18 +83,4 @@ class IsSandstormUserTest extends TestCase
$response->assertRedirect(route('index'));
putenv('SANDSTORM=0');
}
/**
* Set up test
*/
protected function setUp()
{
parent::setUp();
Route::middleware(IsSandStormUser::class)->any(
'/_test/is-sandstorm', function () {
return 'OK';
}
);
}
}