mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Update test code.
This commit is contained in:
@@ -36,7 +36,7 @@ class IsAdminTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\IsAdmin::handle
|
||||
*/
|
||||
public function testMiddleware()
|
||||
public function testMiddleware(): void
|
||||
{
|
||||
$this->withoutExceptionHandling();
|
||||
$response = $this->get('/_test/is-admin');
|
||||
@@ -47,7 +47,7 @@ class IsAdminTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\IsAdmin::handle
|
||||
*/
|
||||
public function testMiddlewareAjax()
|
||||
public function testMiddlewareAjax(): void
|
||||
{
|
||||
$server = ['HTTP_X-Requested-With' => 'XMLHttpRequest'];
|
||||
$this->withoutExceptionHandling();
|
||||
@@ -58,7 +58,7 @@ class IsAdminTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\IsAdmin::handle
|
||||
*/
|
||||
public function testMiddlewareNotOwner()
|
||||
public function testMiddlewareNotOwner(): void
|
||||
{
|
||||
$this->withoutExceptionHandling();
|
||||
$this->be($this->emptyUser());
|
||||
@@ -70,7 +70,7 @@ class IsAdminTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\IsAdmin::handle
|
||||
*/
|
||||
public function testMiddlewareOwner()
|
||||
public function testMiddlewareOwner(): void
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->withoutExceptionHandling();
|
||||
|
||||
Reference in New Issue
Block a user