3/5 discussions resolved
added 1 commit
- b47d4b3d - Moved to delegate, and only triggering on one tx
added 2 commits
added 2 commits
changed title from WIP: Add in event for checking for onchain badge to WIP: Add in delegate for checking for onchain badge
added 2 commits
- Resolved by Ben Hayward
- Resolved by Ben Hayward
- Resolved by Ben Hayward
15 16 class OnchainBadgeSpec extends ObjectBehavior 17 { 18 19 function it_is_initializable() 20 { 21 $this->shouldHaveType(OnchainBadge::class); 22 } 23 24 function it_should_update_a_users_plus_badge_expiry(Boost $boost, User $user) 25 { 26 $boost->getOwner() 27 ->shouldBeCalled() 28 ->willReturn($user); 29 30 $user->setOnchainBooster(Argument::any()) - Owner
should we not check the time is set correctly?
50 54 ->during('accept'); 51 55 } 52 56 53 function it_should_accept_a_boost(Payment $payment, Boost $boost) 57 function it_should_accept_a_boost(Payment $payment, Boost $boost, User $user) 54 58 { 59 $boost = new Boost(); 60 $boost->setOwner($user); 61 - Owner
test to ensure delegate was called?