Skip to content

Commit

Permalink
Fix testGetIssuesForUserMonitoredNoTargetUser
Browse files Browse the repository at this point in the history
This was testing a filter with "monitoring user = meta_filter_none",
which was previously unsupported. That resulted in issues monitored by
user -2, so before, and after adding a new issue, the filter returns 0
issues always.

Now that meta_filter_none is supported, meaning issues which are not
monitored by any user, after adding a new issue, the filter must return
1 more issue.
  • Loading branch information
cproensa authored and dregad committed Mar 5, 2018
1 parent 9dcd32d commit 6f1e261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/soap/FilterTest.php
Expand Up @@ -192,7 +192,7 @@ public function testGetIssuesForUserMonitoredNoTargetUser() {

$t_issues_count = $this->getIssuesForUser( 'monitored', $t_target_user );

$this->assertEquals( 0, count( $t_issues_count ) - count( $t_initial_issues_count ), 'count(issuesCount) - count(initialIssuesCount)' );
$this->assertEquals( 1, count( $t_issues_count ) - count( $t_initial_issues_count ), 'count(issuesCount) - count(initialIssuesCount)' );
}

/**
Expand Down

0 comments on commit 6f1e261

Please sign in to comment.