Example #1
0
 public function testToJson()
 {
     $expected = ['id' => 'id', 'price' => $this->item->price()->jsonSerialize(), 'quantity' => 5];
     $this->assertEquals($expected, $this->item->jsonSerialize());
 }