Example #1
0
 /**
  * Test the Model::fill_raw method with accessible.
  *
  * @group laravel
  */
 public function testAttributesAreSetByFillRawMethodWithAccessible()
 {
     Model::$accessible = array('name', 'age');
     $array = array('name' => 'taylor', 'age' => 25, 'setter' => 'foo');
     $model = new Model();
     $model->fill_raw($array);
     $this->assertEquals($array, $model->attributes);
     Model::$accessible = null;
 }