Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2018 at 15:23 UTC
Updated:
11 Jun 2018 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
martin_klimaPatch attached
Comment #4
bojanz commentedWe actually need $order->get('payment_gateway')->first()->get('target_id');
And we need to update the unit test that is failing.
Comment #5
martin_klimaI updated the failing test. I'm not experienced in such kind of tests, and I didn't know how to test first(), then get(), so I used getValue() and tested it locally.
If you think, the $order->get('payment_gateway')->first()->get('target_id') is better approach than getValue(), let me know and I will rewrite it.
Comment #7
martin_klimaComment #8
bojanz commentedRetitling.
Comment #10
bojanz commentedTweaked and committed, thanks!