From: <gi...@ma...> - 2010-04-05 19:20:07
|
The branch, master has been updated via 9af956a343169602801175dd8732c54f33683802 (commit) via 3559cf76d8b3f7464717109720b6af35fcefee12 (commit) from 2278219b36fae4813fb6b949f5c5fa3c74f0cf6b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9af956a343169602801175dd8732c54f33683802 Author: Robert Munteanu <rob...@gm...> Date: Mon Apr 5 22:19:27 2010 +0300 Verify retrieval of issues without categories Bug #0011609: API : get issues of a project crash when category is empty reported that issues without a category set are not retrievable using the mc_filter_get function. A regression test is added to verify that this retrieval does indeed work. commit 3559cf76d8b3f7464717109720b6af35fcefee12 Author: Robert Munteanu <rob...@gm...> Date: Mon Apr 5 22:10:23 2010 +0300 Delete issues created in testCreateIssueWithHandlerByName IssueAddTest.testCreateIssueWithHandlerByName failed to invoke deleteAfterRun for the created issue, which resulted in the issues existing after the test invocation was completed. ----------------------------------------------------------------------- Summary of changes: tests/soap/FilterTest.php | 28 ++++++++++++++++++++++++++++ tests/soap/IssueAddTest.php | 2 ++ 2 files changed, 30 insertions(+), 0 deletions(-) ----------------------------------------------------------------------- commit 9af956a343169602801175dd8732c54f33683802 Author: Robert Munteanu <rob...@gm...> Date: Mon Apr 5 22:19:27 2010 +0300 Verify retrieval of issues without categories Bug #0011609: API : get issues of a project crash when category is empty reported that issues without a category set are not retrievable using the mc_filter_get function. A regression test is added to verify that this retrieval does indeed work. diff --git a/tests/soap/FilterTest.php b/tests/soap/FilterTest.php index 41e3d0d..c9e59e4 100644 --- a/tests/soap/FilterTest.php +++ b/tests/soap/FilterTest.php @@ -154,6 +154,34 @@ class FilterTest extends SoapBase { $this->assertEquals( 1, count( $projectIssues ) - count( $initialIssues ), "count(projectIssues) - count(initialIssues)"); } + + /** + * A test case that tests the following: + * + * 1. Creating an issue with a category + * 2. Retrieving all the project's issues + * 3. Verifying that the created issue is present in the retrieved issues + * + * Test created to verify issue #11609 + */ + public function testGetProjectIssuesWithoutCategory() { + + $this->skipIfAllowNoCategoryIsDisabled(); + + $issueToAdd = $this->getIssueToAdd( 'IssueAddTest.testCreateBugWithNoCategory' ); + unset ( $issueToAdd['category'] ); + + $issueId = $this->client->mc_issue_add( + $this->userName, + $this->password, + $issueToAdd); + + $this->deleteAfterRun( $issueId ); + + $projectIssues = $this->getProjectIssues(); + + $this->assertEquals( $issueId, $projectIssues[0]->id, "id" ); + } /** * commit 3559cf76d8b3f7464717109720b6af35fcefee12 Author: Robert Munteanu <rob...@gm...> Date: Mon Apr 5 22:10:23 2010 +0300 Delete issues created in testCreateIssueWithHandlerByName IssueAddTest.testCreateIssueWithHandlerByName failed to invoke deleteAfterRun for the created issue, which resulted in the issues existing after the test invocation was completed. diff --git a/tests/soap/IssueAddTest.php b/tests/soap/IssueAddTest.php index 43cf7aa..40f45fc 100644 --- a/tests/soap/IssueAddTest.php +++ b/tests/soap/IssueAddTest.php @@ -374,6 +374,8 @@ class IssueAddTest extends SoapBase { $this->userName, $this->password, $issueToAdd); + + $this->deleteAfterRun( $issueId ); $issue = $this->client->mc_issue_get( $this->userName, ----------------------------------------------------------------------- -- Mantis Bug Tracker |