public function testCollectRates() { $this->mockIsActive(true); $this->mockGetLocations(); $this->mockBuildRateForLocation(); $this->rateResult->expects($this->once())->method('append')->with($this->method); $result = $this->model->collectRates(new \Magento\Framework\Object()); $this->assertInstanceOf('Magento\\Shipping\\Model\\Rate\\Result', $result); }