Skip to content

Commit b314399

Browse files
author
Andy Coates
committed
Make sure items are actually added to the request
1 parent 1477a88 commit b314399

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Message/DirectAuthorizeRequestTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
class DirectAuthorizeRequestTest extends TestCase
88
{
9+
/**
10+
* @var \Omnipay\Common\Message\AbstractRequest $request
11+
*/
12+
protected $request;
13+
914
public function setUp()
1015
{
1116
parent::setUp();
@@ -60,6 +65,7 @@ public function testNoBasket()
6065

6166
// Then with a basket containing no items.
6267
$items = new \Omnipay\Common\ItemBag(array());
68+
$this->request->setItems($items);
6369
$data = $this->request->getData();
6470
$this->assertArrayNotHasKey('BasketXML', $data);
6571
}

0 commit comments

Comments
 (0)