specify('model should load data without ModelName array scope', function() use ($model) { expect('model successful load data without prefix', $model->load(['field' => 'test-data']))->true(); expect('field is set as passed data', $model->field)->equals('test-data'); }); } } class DummyTestModel extends BaseApiForm { public $field; public function rules() { return [ ['field', 'safe'], ]; } }