Code Duplication    Length = 12-12 lines in 2 locations

tests/FoxyStripeProductTest.php 2 locations

@@ 74-85 (lines=12) @@
71
    /**
72
     *
73
     */
74
    function testProductTitleLeadingWhiteSpace()
75
    {
76
77
        //$this->logInWithPermission('ADMIN');
78
        $product = $this->objFromFixture('ShippableProduct', 'product1');
79
        $product->Title = " Test with leading space";
80
        $product->ParentID = ProductHolder::get()->first()->ID;
81
        $product->write();
82
83
        $this->assertEquals($product->Title, 'Test with leading space');
84
85
    }
86
87
    /**
88
     *
@@ 90-101 (lines=12) @@
87
    /**
88
     *
89
     */
90
    function testProductTitleTrailingWhiteSpace()
91
    {
92
93
        //$this->logInWithPermission('ADMIN');
94
        $product = $this->objFromFixture('ShippableProduct', 'product1');
95
        $product->Title = "Test with trailing space ";
96
        $product->ParentID = ProductHolder::get()->first()->ID;
97
        $product->write();
98
99
        $this->assertEquals($product->Title, 'Test with trailing space');
100
101
    }
102
103
    /**
104
     *