Skip to content

Commit c23af9a

Browse files
author
J.C. Manzo
committed
Add assertion for checking that ErrorEvent contains the request object
1 parent 22f24e2 commit c23af9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/OmnipayGatewayRequestSubscriberTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public function testLogging($event_type, $event, array $record)
121121
$this->assertTrue($this->logger->hasNotice($record));
122122
} else if ($record['level'] === LogLevel::ERROR) {
123123
$this->assertInstanceOf('\Exception', $context['error']);
124+
$this->assertInstanceOf('Omnipay\Common\Message\RequestInterface', $context['request']);
124125
$this->assertTrue($this->logger->hasErrorRecords());
125126
$this->assertTrue($this->logger->hasError($record));
126127
} else {

0 commit comments

Comments
 (0)