Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Novikov Andrey committed Jan 22, 2019
1 parent 4f09cb2 commit bd63aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/Message/CaptureRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ protected function getRequestParameters()
*/
public function testData()
{
$this->assertEquals($this->request->getData(), $this->getRequestParameters());
$params = $this->getRequestParameters();
$params['amount'] = $params['amount'] * 100;
$this->assertEquals($this->request->getData(), $params);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion tests/Message/RefundRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public function getMethod()
*/
public function testData()
{
$this->assertEquals($this->request->getData(), $this->getRequestParameters());
$params = $this->getRequestParameters();
$params['amount'] = $params['amount'] * 100;
$this->assertEquals($this->request->getData(), $params);
}

/**
Expand Down

0 comments on commit bd63aae

Please sign in to comment.