|
@@ 128-135 (lines=8) @@
|
| 125 |
|
]); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
public function testExecute() |
| 129 |
|
{ |
| 130 |
|
$this->checkoutSession->method('getPayoneWorkorderId')->willReturn(null); |
| 131 |
|
|
| 132 |
|
$this->request->method('getBeforeForwardInfo')->willReturn(false); |
| 133 |
|
$result = $this->classToTest->execute(); |
| 134 |
|
$this->assertInstanceOf(Redirect::class, $result); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
public function testExecuteRedirect() |
| 138 |
|
{ |
|
@@ 137-144 (lines=8) @@
|
| 134 |
|
$this->assertInstanceOf(Redirect::class, $result); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
public function testExecuteRedirect() |
| 138 |
|
{ |
| 139 |
|
$this->checkoutSession->method('getPayoneWorkorderId')->willReturn('12345'); |
| 140 |
|
|
| 141 |
|
$this->request->method('getBeforeForwardInfo')->willReturn(false); |
| 142 |
|
$result = $this->classToTest->execute(); |
| 143 |
|
$this->assertInstanceOf(Page::class, $result); |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|