Beispiel #1
0
 /**
  * to update main model
  * 
  * @return bool
  */
 protected function updateMainModel()
 {
     $result = $this->updatedMainModel->update($this->picker->getNonMultilangToArray());
     $this->fireOnCRUD('updating');
     return is_int($result) && $result >= 1 ? true : $result;
 }
Beispiel #2
0
 public function testNonMultilangToArray()
 {
     $this->obj->import($this->rawPost);
     $oneMustBe = ["enable" => 1, "visible" => 0];
     $this->assertEquals($oneMustBe, $this->obj->getNonMultilangToArray());
 }