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