Code Duplication    Length = 7-8 lines in 2 locations

Test/Unit/Observer/AddPaypalExpressButtonTest.php 1 location

@@ 65-72 (lines=8) @@
62
        ]);
63
    }
64
65
    public function testExecutePaypalInactive()
66
    {
67
        $this->paymentHelper->method('isPayPalExpressActive')->willReturn(false);
68
        $observer = $this->getMockBuilder(Observer::class)->disableOriginalConstructor()->getMock();
69
70
        $result = $this->classToTest->execute($observer);
71
        $this->assertNull($result);
72
    }
73
74
    public function testExecutePaypalActive()
75
    {

Test/Unit/Observer/PredispatchCheckoutIndexTest.php 1 location

@@ 91-97 (lines=7) @@
88
        ]);
89
    }
90
91
    public function testExecute()
92
    {
93
        $observer = $this->getMockBuilder(Observer::class)->disableOriginalConstructor()->getMock();
94
95
        $result = $this->classToTest->execute($observer);
96
        $this->assertNull($result);
97
    }
98
99
    public function testExecuteException()
100
    {