public function testAfterSaveShippingMethodWithNotEmptyResult() { $subjectMock = $this->getMock('\\Magento\\Checkout\\Model\\Type\\Onepage', [], [], '', false); $this->assertEquals(['expected result'], $this->plugin->afterSaveShippingMethod($subjectMock, ['expected result'])); }