/** * 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; }
public function testNonMultilangToArray() { $this->obj->import($this->rawPost); $oneMustBe = ["enable" => 1, "visible" => 0]; $this->assertEquals($oneMustBe, $this->obj->getNonMultilangToArray()); }