public function testIsCustom() { $this->_model->setCarrierCode('ups'); $this->assertFalse($this->_model->isCustom()); $this->_model->setCarrierCode('custom'); $this->assertTrue($this->_model->isCustom()); }
/** * @dataProvider isCustomDataProvider * @param bool $expectedResult * @param string $carrierCodeToSet */ public function testIsCustom($expectedResult, $carrierCodeToSet) { $this->_model->setCarrierCode($carrierCodeToSet); $this->assertEquals($expectedResult, $this->_model->isCustom()); }