protected function FeedsParaMapperWebTestCase::assetsFilesExist in Feeds Paragraphs 7
Checks if all assets files exist.
1 call to FeedsParaMapperWebTestCase::assetsFilesExist()
- FeedsParaMapperWebTestCase::setUp in tests/
FeedsParaMapperWebTestCase.test - Prepares the test environment.
File
- tests/
FeedsParaMapperWebTestCase.test, line 722 - Common functionality for all Paragraphs Mapper tests.
Class
- FeedsParaMapperWebTestCase
- Test basic functionality via DrupalWebTestCase.
Code
protected function assetsFilesExist() {
$root = $this
->getProjectPath();
$assets = array(
'content.csv' => $root . '/tests/assets/content.csv',
'updated_content.csv' => $root . '/tests/assets/updated_content.csv',
'image.png' => $root . '/tests/assets/image.png',
);
foreach ($assets as $name => $path) {
$exists = file_exists($path);
$message = format_string("Asset file @name exists", array(
"@name" => $name,
));
$this
->assertTrue($exists, $message, "Setup");
}
}