Fix some tests

This commit is contained in:
James Cole
2019-12-22 07:50:40 +01:00
parent dfca5b8722
commit a416b682e0
12 changed files with 92 additions and 231 deletions

View File

@@ -260,7 +260,7 @@ class TransactionLinkControllerTest extends TestCase
Log::warning('The following error is part of a test.');
$response = $this->post(route('api.v1.transaction_links.store'), $data, ['Accept' => 'application/json']);
$response->assertStatus(500);
$response->assertSee('Source or destination is NULL.'); // the creation moment.
$response->assertSee('200024'); // the creation moment.
$response->assertHeader('Content-Type', 'application/json');
}
@@ -384,7 +384,7 @@ class TransactionLinkControllerTest extends TestCase
Log::warning('The following error is part of a test.');
$response = $this->put(route('api.v1.transaction_links.update', $journalLink->id), $data, ['Accept' => 'application/json']);
$response->assertStatus(500);
$response->assertSee('Source or destination is NULL.'); // the creation moment.
$response->assertSee('200024'); // the creation moment.
$response->assertHeader('Content-Type', 'application/json');
}