Skip to content

Commit

Permalink
Merge pull request #62 from andrefatchip/OXID-208
Browse files Browse the repository at this point in the history
Oxid 208
fixes #61
  • Loading branch information
hreinberger authored Oct 15, 2018
2 parents f3f64ff + f0e577b commit 6ed2862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 256 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1654,12 +1654,12 @@ public function test_fcpoKlarnaIsBirthdayNeeded_Coverage()
$oMockCountry = new stdClass();
$oMockCountry->oxcountry__oxisoalpha2 = new oxField('DE');

$oMockUser = $this->getMock('oxUser', array('getUserCountry'));
$oMockUser->expects($this->any())->method('getUserCountry')->will($this->returnValue($oMockCountry));
$oMockUser = oxNew('oxUser');
$oMockUser->oxuser__oxbirthdate = new oxField('0000-00-00');

$oTestObject = $this->getMock('fcPayOnePaymentView', array('getUser'));
$oTestObject = $this->getMock('fcPayOnePaymentView', array('getUser', 'fcGetBillCountry'));
$oTestObject->expects($this->any())->method('getUser')->will($this->returnValue($oMockUser));
$oTestObject->expects($this->any())->method('fcGetBillCountry')->will($this->returnValue('DE'));

$this->assertEquals(true, $oTestObject->fcpoKlarnaIsBirthdayNeeded());
}
Expand Down

0 comments on commit 6ed2862

Please sign in to comment.