예제 #1
0
 /**
  * @dataProvider dataProvider
  */
 public function testLoad($test)
 {
     $blueprint = new Blueprint($test);
     $blueprint->setOverrides(['extends' => ['extends', 'basic']]);
     $blueprint->load();
     // Save test results if they do not exist (data needs to be verified by human!)
     /*
     $resultFile = YamlFile::instance(__DIR__ . '/data/form/items/' . $test . '.yaml');
     if (!$resultFile->exists()) {
         $resultFile->content($blueprint->toArray());
         $resultFile->save();
     }
     */
     // Test 1: Loaded form.
     $this->assertEquals($this->loadYaml($test, 'form/items'), $blueprint->toArray());
 }