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 IsAdminTest extends TestCase
{
/**
* Set up test
*/
public function setUp(): void
{
parent::setUp();
Route::middleware(IsAdmin::class)->any(
'/_test/is-admin', function () {
return 'OK';
}
);
}
/**
* @covers \FireflyIII\Http\Middleware\IsAdmin
*/
@@ -77,18 +91,4 @@ class IsAdminTest extends TestCase
$response = $this->get('/_test/is-admin');
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode());
}
/**
* Set up test
*/
protected function setUp()
{
parent::setUp();
Route::middleware(IsAdmin::class)->any(
'/_test/is-admin', function () {
return 'OK';
}
);
}
}