Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Controller/Admin/WalletsTest.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | public function testShow(): void | ||||
$this->assertSame($wallet->id, $json['id']); | $this->assertSame($wallet->id, $json['id']); | ||||
$this->assertSame('CHF', $json['currency']); | $this->assertSame('CHF', $json['currency']); | ||||
$this->assertSame($wallet->balance, $json['balance']); | $this->assertSame($wallet->balance, $json['balance']); | ||||
$this->assertSame(0, $json['discount']); | $this->assertSame(0, $json['discount']); | ||||
$this->assertTrue(empty($json['description'])); | $this->assertTrue(empty($json['description'])); | ||||
$this->assertTrue(empty($json['discount_description'])); | $this->assertTrue(empty($json['discount_description'])); | ||||
$this->assertTrue(!empty($json['provider'])); | $this->assertTrue(!empty($json['provider'])); | ||||
$this->assertTrue(!empty($json['providerLink'])); | $this->assertTrue(empty($json['providerLink'])); | ||||
$this->assertTrue(!empty($json['mandate'])); | $this->assertTrue(!empty($json['mandate'])); | ||||
} | } | ||||
/** | /** | ||||
* Test awarding/penalizing a wallet (POST /api/v4/wallets/:id/one-off) | * Test awarding/penalizing a wallet (POST /api/v4/wallets/:id/one-off) | ||||
*/ | */ | ||||
public function testOneOff(): void | public function testOneOff(): void | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |