Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix tests under PHPUnit 3.4

Apparently type checks are more strict in PHPUnit 3.4 than in 3.6 .
  • Loading branch information...
commit c627a9a72469ae316c811d18873a9512fdf4e101 1 parent ad17dbb
@rombert rombert authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 tests/soap/IssueAddTest.php
  2. +1 −1  tests/soap/IssueUpdateTest.php
View
4 tests/soap/IssueAddTest.php
@@ -96,7 +96,7 @@ public function testCreateIssue() {
$this->assertEquals( 'none', $issue->eta->name );
$this->assertEquals( 10, $issue->resolution->id );
$this->assertEquals( 'open', $issue->resolution->name );
- $this->assertEquals( 0, $issue->sticky );
+ $this->assertEquals( false, $issue->sticky );
}
@@ -146,7 +146,7 @@ public function testCreateIssueWithRareFields() {
$issueToAdd['status'] = array( 'id' => 40 ); // confirmed
$issueToAdd['fixed_in_version'] = 'fixed version';
$issueToAdd['target_version'] = 'target version';
- $issueToAdd['sticky'] = 1;
+ $issueToAdd['sticky'] = true;
$issueId = $this->client->mc_issue_add(
$this->userName,
View
2  tests/soap/IssueUpdateTest.php
@@ -112,7 +112,7 @@ public function testUpdateSummaryBasedOnMandatoryFields() {
$this->deleteAfterRun( $issueId );
$issueToUpdate = $this->getIssueToAdd( 'IssueUpdateTest.testUpdateSummaryBasedOnMandatoryFields' );
- $issueToUpdate['sticky'] = '1';
+ $issueToUpdate['sticky'] = true;
$this->client->mc_issue_update(
$this->userName,
Please sign in to comment.
Something went wrong with that request. Please try again.