Code Duplication    Length = 7-7 lines in 2 locations

tests/unit/ModuleTest.php 2 locations

@@ 77-83 (lines=7) @@
74
75
    protected $testString = 'a and b';
76
77
    public function testOrderButton()
78
    {
79
        $this->object->setOrderButton($this->testString);
80
        $this->assertSame($this->testString, $this->object->getOrderButton());
81
        $this->object->setOrderButton(function () { return $this->testString; });
82
        $this->assertSame($this->testString, $this->object->getOrderButton());
83
    }
84
85
    public function testPaymentMethods()
86
    {
@@ 85-91 (lines=7) @@
82
        $this->assertSame($this->testString, $this->object->getOrderButton());
83
    }
84
85
    public function testPaymentMethods()
86
    {
87
        $this->object->setPaymentMethods($this->testString);
88
        $this->assertSame($this->testString, $this->object->getPaymentMethods());
89
        $this->object->setPaymentMethods(function () { return $this->testString; });
90
        $this->assertSame($this->testString, $this->object->getPaymentMethods());
91
    }
92
}
93