Skip to content

Commit 6ed2862

Browse files
authored
Merge pull request #62 from andrefatchip/OXID-208
Oxid 208 fixes #61
2 parents f3f64ff + f0e577b commit 6ed2862

File tree

3 files changed

+3
-256
lines changed

3 files changed

+3
-256
lines changed

tests/unit/fcPayOne/application/controllers/admin/fcpayone_supportTest.php

-117
This file was deleted.

tests/unit/fcPayOne/application/controllers/admin/fcpayone_support_mainTest.php

-136
This file was deleted.

tests/unit/fcPayOne/extend/application/controllers/fcPayonePaymentViewTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1654,12 +1654,12 @@ public function test_fcpoKlarnaIsBirthdayNeeded_Coverage()
16541654
$oMockCountry = new stdClass();
16551655
$oMockCountry->oxcountry__oxisoalpha2 = new oxField('DE');
16561656

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

1661-
$oTestObject = $this->getMock('fcPayOnePaymentView', array('getUser'));
1660+
$oTestObject = $this->getMock('fcPayOnePaymentView', array('getUser', 'fcGetBillCountry'));
16621661
$oTestObject->expects($this->any())->method('getUser')->will($this->returnValue($oMockUser));
1662+
$oTestObject->expects($this->any())->method('fcGetBillCountry')->will($this->returnValue('DE'));
16631663

16641664
$this->assertEquals(true, $oTestObject->fcpoKlarnaIsBirthdayNeeded());
16651665
}

0 commit comments

Comments
 (0)