Commit 8735390c authored by borisson_'s avatar borisson_ Committed by borisson_
Browse files

Issue #2851028 by borisson_: Test fails because of core date tests

parent 545755aa
......@@ -91,6 +91,7 @@ abstract class FacetsHooksTestBase extends BrowserTestBase {
$node->addTranslation('es', [
'title' => 'test page' . $i . ' ES',
'created' => $created_time_es->format('U'),
'changed' => ((int) $created_time_es->format('U') + 250),
]);
$node->save();
......@@ -102,7 +103,7 @@ abstract class FacetsHooksTestBase extends BrowserTestBase {
'body' => 'test page10',
'type' => 'page',
'created' => $created_time->format('U'),
'changed' => $created_time_en->format('U'),
'changed' => ((int) $created_time->format('U') + 250),
'langcode' => 'en',
));
......@@ -114,7 +115,7 @@ abstract class FacetsHooksTestBase extends BrowserTestBase {
'body' => 'test article' . $i,
'type' => 'article',
'created' => $created_time->format('U'),
'changed' => $created_time_en->format('U'),
'changed' => ((int) $created_time->format('U') + 250),
'langcode' => 'en',
));
}
......
......@@ -144,7 +144,7 @@ class IntegrationTest extends FacetsHooksTestBase {
$this->setShowAmountOfResults($facet_id, TRUE);
// Update the changed date. The nodes were created on February/March 2016
// and the changed date is December 2016.
// and the changed date is June 3, 2016.
$node = Node::load(1);
$changed_date = new \DateTime('June 3 2016 1PM');
$node->changed = $changed_date->format('U');
......
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