Code Duplication    Length = 10-10 lines in 4 locations

Test/Unit/Model/Methods/BarzahlenTest.php 1 location

@@ 55-64 (lines=10) @@
52
     */
53
    private $authorizationRequest;
54
55
    protected function setUp()
56
    {
57
        $this->objectManager = $this->getObjectManager();
58
59
        $this->authorizationRequest = $this->getMockBuilder(Authorization::class)->disableOriginalConstructor()->getMock();
60
61
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
62
            'authorizationRequest' => $this->authorizationRequest,
63
        ]);
64
    }
65
66
    public function testGetAuthorizationMode()
67
    {

Test/Unit/Model/Methods/PayoneMethodTest.php 1 location

@@ 53-62 (lines=10) @@
50
     */
51
    private $shopHelper;
52
53
    protected function setUp()
54
    {
55
        $this->objectManager = $this->getObjectManager();
56
57
        $this->shopHelper = $this->getMockBuilder(Shop::class)->disableOriginalConstructor()->getMock();
58
59
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
60
            'shopHelper' => $this->shopHelper
61
        ]);
62
    }
63
64
    public function testGetClearingtype()
65
    {

Test/Unit/Observer/AddPaypalExpressButtonTest.php 1 location

@@ 57-66 (lines=10) @@
54
     */
55
    private $paymentHelper;
56
57
    protected function setUp()
58
    {
59
        $this->objectManager = $this->getObjectManager();
60
61
        $this->paymentHelper = $this->getMockBuilder(Payment::class)->disableOriginalConstructor()->getMock();
62
63
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
64
            'paymentHelper' => $this->paymentHelper
65
        ]);
66
    }
67
68
    public function testExecutePaypalInactive()
69
    {

Test/Unit/Observer/Transactionstatus/AppointedTest.php 1 location

@@ 54-63 (lines=10) @@
51
     */
52
    private $orderSender;
53
54
    protected function setUp()
55
    {
56
        $this->objectManager = $this->getObjectManager();
57
58
        $this->orderSender = $this->getMockBuilder(OrderSender::class)->disableOriginalConstructor()->getMock();
59
60
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
61
            'orderSender' => $this->orderSender
62
        ]);
63
    }
64
65
    public function testExecute()
66
    {