Skip to content

Commit

Permalink
Fix a phpunit migration error
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Mar 2, 2021
1 parent 67bf82d commit cb93fa3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/TestCase/Controller/IncidentsControllerTest.php
Expand Up @@ -37,12 +37,10 @@ public function testView(): void
$this->get('/incidents/view/1');

$this->assertNotEmpty($this->viewVariable('incident'));
$this->assertInternalType(
'array',
$this->assertIsArray(
$this->viewVariable('incident')['stacktrace']
);
$this->assertInternalType(
'array',
$this->assertIsArray(
$this->viewVariable('incident')['full_report']
);
}
Expand Down Expand Up @@ -139,6 +137,7 @@ public function testCreate(): void
$this->configRequest(['input' => '']);
$this->post('/incidents/create');
$result = json_decode($this->_response->getBody(), true);
$this->assertNotNull($result);
$this->assertEquals(false, $result['success']);

// Test invalid Notification email configuration
Expand Down

0 comments on commit cb93fa3

Please sign in to comment.