Skip to content

Commit

Permalink
Add assertion for checking that ErrorEvent contains the request object
Browse files Browse the repository at this point in the history
  • Loading branch information
J.C. Manzo committed May 6, 2019
1 parent 22f24e2 commit c23af9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/OmnipayGatewayRequestSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function testLogging($event_type, $event, array $record)
$this->assertTrue($this->logger->hasNotice($record));
} else if ($record['level'] === LogLevel::ERROR) {
$this->assertInstanceOf('\Exception', $context['error']);
$this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $context['request']);
$this->assertTrue($this->logger->hasErrorRecords());
$this->assertTrue($this->logger->hasError($record));
} else {
Expand Down

0 comments on commit c23af9a

Please sign in to comment.