exportToYaml() public method

Export to Yaml file.
public exportToYaml ( string $file, $dataTypes = 'all', boolean $autoCreate = true ) : Result
$file string
$autoCreate boolean
return NerdsAndCompany\Schematic\Models\Result
Example #1
0
 /**
  * Test export to yml with error writing to file.
  *
  * @covers ::exportToYaml
  */
 public function testExportFromYamlWithFileError()
 {
     $this->prepExportMockServices();
     $results = $this->schematicService->exportToYaml('non-existing-folder/not-a-file', false);
     $this->assertTrue($results->hasErrors());
 }