File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Block/Adminhtml/Order/Create
Test/Unit/Block/Order/Create Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ protected function _construct()
83
83
*/
84
84
public function getTotals ()
85
85
{
86
+ $ this ->getQuote ()->setTotalsCollectedFlag (false );
87
+ $ this ->getQuote ()->collectTotals ();
86
88
if ($ this ->getQuote ()->isVirtual ()) {
87
89
$ totals = $ this ->getQuote ()->getBillingAddress ()->getTotals ();
88
90
} else {
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ protected function setUp()
87
87
public function testGetTotals ($ isVirtual )
88
88
{
89
89
$ expected = 'expected ' ;
90
+ $ this ->quoteMock ->expects ($ this ->at (0 ))->method ('setTotalsCollectedFlag ' )->with (false );
91
+ $ this ->quoteMock ->expects ($ this ->at (1 ))->method ('collectTotals ' );
90
92
$ this ->quoteMock ->expects ($ this ->once ())->method ('isVirtual ' )->willreturn ($ isVirtual );
91
93
if ($ isVirtual ) {
92
94
$ this ->billingAddressMock ->expects ($ this ->once ())->method ('getTotals ' )->willReturn ($ expected );
You can’t perform that action at this time.
0 commit comments