// Readme is specific to Starterkit, so remove it from the generated theme.
$readme_file="$tmp_dir/README.md";
if(!file_put_contents($readme_file,"$destination_theme theme, generated from $source_theme_name. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme).")){
$io->getErrorStyle()->error("The readme could not be rewritten.");
$this->assertSame('test_custom_theme theme, generated from starterkit_theme. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme).',file_get_contents($readme_file));
// Ensure that the generated theme can be installed.
$this->assertSame('generated_from_another_theme theme, generated from test_custom_theme. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme).',file_get_contents($readme_file));
}
/**
* Tests the generate-theme command on a dev snapshot of Drupal core.