Skip to content

Commit

Permalink
Asserting responseCode is set
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Hallgren <challgren@gmail.com>
  • Loading branch information
challgren committed Dec 18, 2019
1 parent 0f1e404 commit 31d861f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Mailer/Transport/MailgunTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ public function testInvalidApiKey()
{
$this->_setBlankApiEmailConfig();
$res = $this->_sendEmail();
$apiResponse = $res['apiResponse'];

$this->assertNull($apiResponse);
$this->assertNull($res['apiResponse']);
$this->assertSame(401, $res['responseCode']);
}

public function testInvalidDomainKey()
Expand Down

0 comments on commit 31d861f

Please sign in to comment.