Test/Unit/Block/Onepage/DebitTest.php 1 location
|
@@ 115-122 (lines=8) @@
|
| 112 |
|
$this->assertFalse($result); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
public function testGetCheckoutUrl() |
| 116 |
|
{ |
| 117 |
|
$expected = 'http://testdomain.com'; |
| 118 |
|
$this->urlBuilder->method('getUrl')->willReturn($expected); |
| 119 |
|
|
| 120 |
|
$result = $this->classToTest->getCheckoutUrl(); |
| 121 |
|
$this->assertEquals($expected, $result); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
public function testGetErrorMessage() |
| 125 |
|
{ |
Test/Unit/Block/Onepage/SuccessTest.php 1 location
|
@@ 120-127 (lines=8) @@
|
| 117 |
|
$this->assertFalse($result); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
public function testGetMandateDownloadUrl() |
| 121 |
|
{ |
| 122 |
|
$expected = 'http://testdomain.com'; |
| 123 |
|
$this->urlBuilder->method('getUrl')->willReturn($expected); |
| 124 |
|
|
| 125 |
|
$result = $this->classToTest->getMandateDownloadUrl(); |
| 126 |
|
$this->assertEquals($expected, $result); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
public function testGetInstructionNotes() |
| 130 |
|
{ |
Test/Unit/Block/Paypal/ExpressButtonTest.php 1 location
|
@@ 80-87 (lines=8) @@
|
| 77 |
|
$this->assertEquals($expected, $result); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public function testGetPayPalExpressLink() |
| 81 |
|
{ |
| 82 |
|
$expected = 'http://testdomain.com'; |
| 83 |
|
$this->urlBuilder->method('getUrl')->willReturn($expected); |
| 84 |
|
|
| 85 |
|
$result = $this->classToTest->getPayPalExpressLink(); |
| 86 |
|
$this->assertEquals($expected, $result); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
public function testGetPayPalExpressLogoUrl() |
| 90 |
|
{ |
Test/Unit/Block/Payolution/InstallmentPlanTest.php 1 location
|
@@ 108-115 (lines=8) @@
|
| 105 |
|
$this->assertEquals($expected, $result); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public function testGetDraftDownloadLink() |
| 109 |
|
{ |
| 110 |
|
$expected = 'http://testdomain.com'; |
| 111 |
|
$this->urlBuilder->method('getUrl')->willReturn($expected); |
| 112 |
|
|
| 113 |
|
$result = $this->classToTest->getDraftDownloadLink(5); |
| 114 |
|
$this->assertEquals($expected, $result); |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
|