public function testFromSell() { $sell = new Sell(); $sell->setAmount(new Money(1, CurrencyCode::BTC)); $sell->setPaymentMethod(new PaymentMethod('PAYMENT_METHOD_ID')); $data = $this->mapper->fromSell($sell); $this->assertEquals(['amount' => '1', 'currency' => 'BTC', 'payment_method' => 'PAYMENT_METHOD_ID'], $data); }