Skip to content

Commit

Permalink
CRM-7855: Failed tests on master related to Opportunity feature (#8048)
Browse files Browse the repository at this point in the history
- fix failed tests
  • Loading branch information
Aleksey Solonenko authored and aivus committed Mar 1, 2017
1 parent 57ffe22 commit 5bd9dab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function createOpportunities()
//insert one opportunity for previous months
$createdAt = new \DateTime('now', new \DateTimeZone('UTC'));
$this->createOpportunity($createdAt, ++$i);
$createdAt->sub(new \DateInterval('P2M'));
$this->createOpportunity($createdAt, ++$i);
}

public function createOpportunity($createdAt, $id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function widgetProvider()
'opportunities_by_state[dateRange][type]' => AbstractDateFilterType::TYPE_ALL_TIME,
'opportunities_by_state[useQuantityAsData]' => 1
],
'expectedResultCount' => 5
'expectedResultCount' => 4
],
],
];
Expand Down

0 comments on commit 5bd9dab

Please sign in to comment.