Code Duplication    Length = 12-12 lines in 2 locations

tests/FoxyStripeProductTest.php 2 locations

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