importFromYaml() public method

Import from Yaml file.
public importFromYaml ( string $file, string $override = null, boolean $force = false ) : Result
$file string
$override string
$force boolean if set to true items not included in import will be deleted
return NerdsAndCompany\Schematic\Models\Result
Example #1
0
 /**
  * Test import from Yaml.
  *
  * @covers ::importFromYaml
  */
 public function testImportFromYamlWithForce()
 {
     $results = $this->schematicService->importFromYaml($this->getYamlTestFile(), null, true);
     $this->assertFalse($results->hasErrors());
 }