mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-08-28 12:56:44 -04:00
allow bonus accrual by category
This commit is contained in:
@@ -262,8 +262,9 @@ class RequestTest extends TestCase {
|
||||
// race condition between requests.LastPostTime and requests.created that would be
|
||||
// difficult to remove without adding a lot of complications to the code.
|
||||
$this->assertFalse($this->request->hasNewVote(), 'request-no-new-vote');
|
||||
Helper::sleepTick(); // to ensure lastVoteDate() > created()
|
||||
|
||||
// add some bounty
|
||||
Helper::sleepTick(); // to ensure lastVoteDate() > created()
|
||||
$this->assertTrue($this->request->vote($user, $bounty), 'request-more-bounty');
|
||||
$this->assertTrue($this->request->flush()->hasNewVote(), 'request-has-new-vote');
|
||||
$this->assertEquals(2, $this->request->userVotedTotal(), 'request-total-voted');
|
||||
|
||||
Reference in New Issue
Block a user