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

@@ -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();