Code Duplication    Length = 12-12 lines in 2 locations

tests/FoxyStripeProductTest.php 2 locations

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