Example #1
0
 public function testGetCommissions()
 {
     $this->assertEquals(array(), $this->model->getCommissions());
     $this->model->setCommissionMin(1.3);
     $this->model->setCommissionMax(null);
     $this->assertEquals(array(1.3), $this->model->getCommissions());
     $this->model->setCommissionMin(null);
     $this->model->setCommissionMax(13.5);
     $this->assertEquals(array(13.5), $this->model->getCommissions());
     $this->model->setCommissionMin(0.2);
     $this->model->setCommissionMax(11.4);
     $this->assertEquals(array(0.2, 11.4), $this->model->getCommissions());
 }
Example #2
0
 /**
  * Set commissionMin
  *
  * @param float $commissionMin
  * @return CeModel
  */
 public function setCommissionMin($commissionMin)
 {
     parent::setCommissionMin($commissionMin);
     return $this;
 }