public function testExportToYamlExcludingDataTypes()
{
$this->prepExportMockServices();
$exportableDataTypes = Schematic::getExportableDataTypes();
$dataTypesToExport = array_diff($exportableDataTypes, ['pluginData']);
$results = $this->schematicService->exportToYaml($this->getYamlExportFile(), $dataTypesToExport);
$this->assertFalse($results->hasErrors());
// Read and process the recently created export YAML file.
$yaml = IOHelper::getFileContents($this->getYamlExportFile());
$dataModel = Data::fromYaml($yaml, []);
// Make sure the excluded data type was not exported.
$this->assertEmpty($dataModel->pluginData);
}