public function testSetColsHidden() { $row = MatrixRow::find(1); $cols = MatrixCol::fieldId(13)->get(); $row->setCols($cols); $array = $row->toArray(); $this->assertArrayNotHasKey('col_id_1', $array); }