Commit 4f67b6d3 authored by MikeyMJCO's avatar MikeyMJCO
Browse files

Update Publish Controller Test

parent 3143126b
......@@ -28,3 +28,4 @@ books
bin/\.phpunit/
\.env\.local\.php
.vscode/launch.json
books @ 525eb406
Subproject commit f27271c5eeb0e2b883f54a0c9d7b25ba5aac22dd
Subproject commit 525eb406b7267c41dbca6e1a54a4a7020205d327
......@@ -27,8 +27,10 @@ class PublishControllerTest extends WebTestCase {
$client->request('POST', $endpoint, [], [], $headers, $hookBody);
$statusCode = $client->getResponse()->getStatusCode();
$responseContent = $client->getResponse()->getContent();
$message = "The response recieved was: " . $responseContent;
$this->assertEquals(Response::HTTP_OK, $statusCode);
$this->assertEquals(Response::HTTP_OK, $statusCode, $message);
/** @var MessageDataCollector $mailCollector */
$mailCollector = $client->getProfile()->getCollector('swiftmailer');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment