Skip to content

Commit

Permalink
Tests: add timestamp to category name
Browse files Browse the repository at this point in the history
Reduce risk of error if a category with the same name exists from a
previous failed run.
  • Loading branch information
dregad committed Oct 15, 2013
1 parent e19dfc2 commit ad2649f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/soap/CategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class CategoryTest extends SoapBase {

private $categoryNamesToDelete = array();
private $categoryNamesToDelete = array();

/**
* A test case that tests the following:
Expand All @@ -56,7 +56,7 @@ public function testAddRenameDeleteCategory() {
$categoryName);

$this->categoryNamesToDelete[] = $categoryName;

$categoryList = $this->client->mc_project_get_categories(
$this->userName,
$this->password,
Expand Down Expand Up @@ -110,13 +110,13 @@ protected function tearDown() {
$categoryName);
}
}

private function getOriginalNameCategory() {
return 'my_category_name';
return 'soaptest_' . date('Ymd_His');
}

private function getNewNameCategory() {
return 'my_new_category_name';
return 'soaptest_renamed_' . date('Ymd_His');
}

}

0 comments on commit ad2649f

Please sign in to comment.