Asserts that a file does not exist in the database.
function assertFileEntryNotExists($file, $message) {
$this->container
->get('plugin.manager.entity')
->getStorageController('file')
->resetCache();
$message = isset($message) ? $message : t('File %file exists in database at the correct path.', array(
'%file' => $file->uri,
));
$this
->assertFalse(file_load($file->fid), $message);
}