Code Duplication    Length = 11-11 lines in 2 locations

tests/FoxyStripeProductTest.php 2 locations

@@ 56-66 (lines=11) @@
53
54
	}
55
56
	function testProductTitleLeadingWhiteSpace(){
57
58
		$this->logInWithPermission('ADMIN');
59
		$product = $this->objFromFixture('FoxyStripeProduct', 'product1');
60
		$product->Title = " Test with leading space";
61
		$product->ParentID = ProductHolder::get()->first()->ID;
62
		$product->doPublish();
63
64
		$this->assertTrue($product->Title == 'Test with leading space');
65
66
	}
67
68
	function testProductTitleTrailingWhiteSpace(){
69
@@ 68-78 (lines=11) @@
65
66
	}
67
68
	function testProductTitleTrailingWhiteSpace(){
69
70
		$this->logInWithPermission('ADMIN');
71
		$product = $this->objFromFixture('FoxyStripeProduct', 'product1');
72
		$product->Title = "Test with trailing space ";
73
		$product->ParentID = ProductHolder::get()->first()->ID;
74
		$product->doPublish();
75
76
		$this->assertTrue($product->Title == 'Test with trailing space');
77
78
	}
79
80
	function testProductCategoryCreation(){
81