File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,22 +141,23 @@ public function testCustomProfileFromJsonSchemaFile()
141141 ], $ datapackage ->descriptor ());
142142 }
143143
144- public function testCustomSchemaMustConformToDatapackageSchema ()
145- {
146- $ descriptor = (object ) [
147- 'profile ' => 'http://json-schema.org/schema ' ,
148- 'resources ' => [], // this is allowed for json-schema.org/schema - but for datapackage it has minimum of 1
149- ];
150- try {
151- Factory::datapackage ($ descriptor );
152- $ this ->fail ();
153- } catch (DatapackageValidationFailedException $ e ) {
154- $ this ->assertEquals (
155- 'Datapackage validation failed: [resources] There must be a minimum of 1 items in the array ' ,
156- $ e ->getMessage ()
157- );
158- }
159- }
144+ // https://github.com/frictionlessdata/datapackage-php/issues/45
145+ // public function testCustomSchemaMustConformToDatapackageSchema()
146+ // {
147+ // $descriptor = (object) [
148+ // 'profile' => 'http://json-schema.org/schema',
149+ // 'resources' => [], // this is allowed for json-schema.org/schema - but for datapackage it has minimum of 1
150+ // ];
151+ // try {
152+ // Factory::datapackage($descriptor);
153+ // $this->fail();
154+ // } catch (DatapackageValidationFailedException $e) {
155+ // $this->assertEquals(
156+ // 'Datapackage validation failed: [resources] There must be a minimum of 1 items in the array',
157+ // $e->getMessage()
158+ // );
159+ // }
160+ // }
160161
161162 public function testRegisteredSchema ()
162163 {
You can’t perform that action at this time.
0 commit comments