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