show token price for viewer on user page

This commit is contained in:
Spine
2025-12-07 19:49:11 +01:00
parent 11f99b0fad
commit 323de7e1fc
5 changed files with 23 additions and 12 deletions
+3 -3
View File
@@ -314,12 +314,12 @@ class BonusTest extends TestCase {
'bonus-purchase-token-other-no-money',
);
$this->assertCount(0,
$manager->offerTokenOther($user),
$manager->offerTokenOther($user, $receiver),
'bonus-offer-other-none',
);
$giver->addPoints((float)$other1->price());
$offer = $manager->offerTokenOther($user);
$offer = $manager->offerTokenOther($user, $receiver);
$this->assertEquals('other-1', $offer[0]->label(), 'bonus-item-all-I-can-give');
$this->assertEquals(
@@ -371,7 +371,7 @@ class BonusTest extends TestCase {
$giver->addPoints((float)$other50->price() * 2);
$this->assertCount(
3,
$manager->offerTokenOther($user),
$manager->offerTokenOther($user, $receiver),
'bonus-offer-other-all',
);