Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Controller/Admin/SkusTest.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function testIndex(): void | ||||
$this->assertSame($sku->title, $json[0]['title']); | $this->assertSame($sku->title, $json[0]['title']); | ||||
$this->assertSame($sku->name, $json[0]['name']); | $this->assertSame($sku->name, $json[0]['name']); | ||||
$this->assertSame($sku->description, $json[0]['description']); | $this->assertSame($sku->description, $json[0]['description']); | ||||
$this->assertSame($sku->cost, $json[0]['cost']); | $this->assertSame($sku->cost, $json[0]['cost']); | ||||
$this->assertSame($sku->units_free, $json[0]['units_free']); | $this->assertSame($sku->units_free, $json[0]['units_free']); | ||||
$this->assertSame($sku->period, $json[0]['period']); | $this->assertSame($sku->period, $json[0]['period']); | ||||
$this->assertSame($sku->active, $json[0]['active']); | $this->assertSame($sku->active, $json[0]['active']); | ||||
$this->assertSame('user', $json[0]['type']); | $this->assertSame('user', $json[0]['type']); | ||||
$this->assertSame('mailbox', $json[0]['handler']); | $this->assertSame('Mailbox', $json[0]['handler']); | ||||
} | } | ||||
/** | /** | ||||
* Test fetching SKUs list for a user (GET /users/<id>/skus) | * Test fetching SKUs list for a user (GET /users/<id>/skus) | ||||
*/ | */ | ||||
public function testUserSkus(): void | public function testUserSkus(): void | ||||
{ | { | ||||
$admin = $this->getTestUser('jeroen@jeroen.jeroen'); | $admin = $this->getTestUser('jeroen@jeroen.jeroen'); | ||||
Show All 19 Lines |