/** * Tests getPaymentMethod(). */ protected function testGetPaymentMethod() { $payment_method = Payment::methodManager()->createInstance('payment_basic'); $this->payment->setPaymentMethod($payment_method); $this->assertTrue(spl_object_hash($this->payment->getPaymentMethod()), spl_object_hash($this->payment)); }