protected function autoloadFields() { $validator = new ModelConfigValidator('\\UserAccount', ['api', 'profileUpdateFields']); if ($validator->isValid()) { $this->fields = array_merge($this->fields, explode(',', $validator->getData())); } return $this->fields; }
public function testConfigPathSupported() { $validator = new ModelConfigValidator(TestModel::ModelName, array(TestModel::PathPropertyName, TestModel::SubPathPropertyName)); $this->assertTrue($validator->isValid()); $this->assertEquals(TestModel::Fixture, $validator->getData()); }