Implement tests.

This commit is contained in:
James Cole
2018-03-04 16:30:20 +01:00
parent 5d6f44cd91
commit 04b8552d27
2 changed files with 17 additions and 17 deletions

View File

@@ -1362,12 +1362,12 @@ class TransactionControllerTest extends TestCase
$response->assertStatus(200);
$response->assertJson(
[
'data' => [
'attributes' => [
'description' => $journal->description,
'type' => 'Deposit',
],
],
'data' => [[
'attributes' => [
'description' => $journal->description,
'type' => 'Deposit',
],
]],
]
);
@@ -1423,12 +1423,14 @@ class TransactionControllerTest extends TestCase
$response->assertJson(
[
'data' => [
'attributes' => [
'description' => $journal->description,
],
'links' => [
0 => [],
'self' => true,
[
'attributes' => [
'description' => $journal->description,
],
'links' => [
0 => [],
'self' => true,
],
],
],