Commit 15b8ea1b authored by webchick's avatar webchick
Browse files

Issue #1779638 follow-up by sun, alexpott, Maxtorete: Fixed another...

Issue #1779638 follow-up by sun, alexpott, Maxtorete: Fixed another unexplained test failure in LocaleFileImportStatus->testBulkImportUpdateExisting().
parent eabaa4cb
......@@ -156,7 +156,8 @@ function testBulkImportUpdateExisting() {
$this->checkTranslations($strings, $langcode);
$timestamp = db_query('SELECT timestamp FROM {locale_file} WHERE uri = :uri', array(':uri' => $file->uri))->fetchField();
$this->assertEqual($timestamp, $file->original_timestamp);
// Ensure that $timestamp is now greater than the manipulated timestamp.
$this->assertTrue($timestamp > $file->timestamp, 'Timestamp on locale_file updated.');
}
/**
......
......@@ -560,7 +560,7 @@ function locale_translate_file_create($filepath) {
$file = new stdClass();
$file->filename = drupal_basename($filepath);
$file->uri = $filepath;
$file->timestamp = filemtime(drupal_realpath($file->uri));
$file->timestamp = filemtime($file->uri);
return $file;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment