|
@@ 60-73 (lines=14) @@
|
| 57 |
|
|
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
function testProductTitleLeadingWhiteSpace(){ |
| 61 |
|
|
| 62 |
|
$this->logInWithPermission('ADMIN'); |
| 63 |
|
|
| 64 |
|
$holder = $this->objFromFixture('ProductHolder', 'holder'); |
| 65 |
|
$holder->doPublish(); |
| 66 |
|
|
| 67 |
|
$product = $this->objFromFixture('ProductPage', 'product1'); |
| 68 |
|
$product->Title = " Test with leading space"; |
| 69 |
|
$product->doPublish(); |
| 70 |
|
|
| 71 |
|
$this->assertTrue($product->Title == 'Test with leading space'); |
| 72 |
|
|
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
function testProductTitleTrailingWhiteSpace(){ |
| 76 |
|
|
|
@@ 75-88 (lines=14) @@
|
| 72 |
|
|
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
function testProductTitleTrailingWhiteSpace(){ |
| 76 |
|
|
| 77 |
|
$this->logInWithPermission('ADMIN'); |
| 78 |
|
|
| 79 |
|
$holder = $this->objFromFixture('ProductHolder', 'holder'); |
| 80 |
|
$holder->doPublish(); |
| 81 |
|
|
| 82 |
|
$product = $this->objFromFixture('ProductPage', 'product1'); |
| 83 |
|
$product->Title = "Test with trailing space "; |
| 84 |
|
$product->doPublish(); |
| 85 |
|
|
| 86 |
|
$this->assertTrue($product->Title == 'Test with trailing space'); |
| 87 |
|
|
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
function testProductCategoryCreation(){ |
| 91 |
|
|