mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-17 04:03:13 -04:00
pass user objects to request bounty methods
This commit is contained in:
@@ -164,7 +164,7 @@ class RequestTest extends TestCase {
|
||||
$this->assertEquals(-$bounty, $after['uploaded'] - $before['uploaded'], 'request-subtract-bounty');
|
||||
|
||||
$this->assertEquals([$this->userList['admin']->id()], array_column($this->request->userIdVoteList(), 'user_id'), 'request-user-id-vote-list');
|
||||
$this->assertEquals($taxedBounty, $this->request->userBounty($this->userList['admin']->id()), 'request-user-bounty-total');
|
||||
$this->assertEquals($taxedBounty, $this->request->userBounty($this->userList['admin']), 'request-user-bounty-total');
|
||||
|
||||
// add some bounty
|
||||
$this->assertTrue($this->request->vote($this->userList['user'], $bounty), 'request-more-bounty');
|
||||
|
||||
Reference in New Issue
Block a user