mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Fix test method names.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user