Пример #1
0
 /**
  * @depends testPossuiSchema
  */
 public function testProduzJsonEmFormatoEsperadoPelaApiDeDestino(Order $order)
 {
     $expected = $this->getResourceJson('fixtures/transaction.post.json');
     $array = $order->toArray();
     foreach (['order', 'payment', 'customer'] as $key) {
         $this->assertEquals($expected[$key . 'Data'], $array[$key . 'Data'], '#' . ucfirst($key));
     }
 }