attribute = new TicketAttribute(); } /** * @covers Modules\Support\Models\TicketAttribute * @group module */ public function testDefault() : void { self::assertEquals(0, $this->attribute->id); self::assertInstanceOf('\Modules\Support\Models\TicketAttributeType', $this->attribute->type); self::assertInstanceOf('\Modules\Support\Models\TicketAttributeValue', $this->attribute->value); } /** * @covers Modules\Support\Models\TicketAttribute * @group module */ public function testSerialize() : void { $serialized = $this->attribute->jsonSerialize(); self::assertEquals( [ 'id', 'ticket', 'type', 'value', ], \array_keys($serialized) ); } }