Test/Unit/Model/Methods/PayoneMethodTest.php 1 location
|
@@ 51-60 (lines=10) @@
|
| 48 |
|
*/ |
| 49 |
|
private $shopHelper; |
| 50 |
|
|
| 51 |
|
protected function setUp() |
| 52 |
|
{ |
| 53 |
|
$this->objectManager = new ObjectManager($this); |
| 54 |
|
|
| 55 |
|
$this->shopHelper = $this->getMockBuilder(Shop::class)->disableOriginalConstructor()->getMock(); |
| 56 |
|
|
| 57 |
|
$this->classToTest = $this->objectManager->getObject(ClassToTest::class, [ |
| 58 |
|
'shopHelper' => $this->shopHelper |
| 59 |
|
]); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
public function testGetClearingtype() |
| 63 |
|
{ |
Test/Unit/Observer/AddPaypalExpressButtonTest.php 1 location
|
@@ 55-64 (lines=10) @@
|
| 52 |
|
*/ |
| 53 |
|
private $paymentHelper; |
| 54 |
|
|
| 55 |
|
protected function setUp() |
| 56 |
|
{ |
| 57 |
|
$this->objectManager = new ObjectManager($this); |
| 58 |
|
|
| 59 |
|
$this->paymentHelper = $this->getMockBuilder(Payment::class)->disableOriginalConstructor()->getMock(); |
| 60 |
|
|
| 61 |
|
$this->classToTest = $this->objectManager->getObject(ClassToTest::class, [ |
| 62 |
|
'paymentHelper' => $this->paymentHelper |
| 63 |
|
]); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
public function testExecutePaypalInactive() |
| 67 |
|
{ |
Test/Unit/Observer/Transactionstatus/AppointedTest.php 1 location
|
@@ 53-62 (lines=10) @@
|
| 50 |
|
*/ |
| 51 |
|
private $orderSender; |
| 52 |
|
|
| 53 |
|
protected function setUp() |
| 54 |
|
{ |
| 55 |
|
$this->objectManager = new ObjectManager($this); |
| 56 |
|
|
| 57 |
|
$this->orderSender = $this->getMockBuilder(OrderSender::class)->disableOriginalConstructor()->getMock(); |
| 58 |
|
|
| 59 |
|
$this->classToTest = $this->objectManager->getObject(ClassToTest::class, [ |
| 60 |
|
'orderSender' => $this->orderSender |
| 61 |
|
]); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function testExecute() |
| 65 |
|
{ |