Mercurial > hg > cmmr2012-drupal-site
diff core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php Thu May 09 15:34:47 2019 +0100 @@ -110,13 +110,13 @@ $edit = [ 'fields[field_timestamp][settings_edit_form][settings][future_format]' => 'ends in @interval', 'fields[field_timestamp][settings_edit_form][settings][past_format]' => 'started @interval ago', - 'fields[field_timestamp][settings_edit_form][settings][granularity]' => 3, + 'fields[field_timestamp][settings_edit_form][settings][granularity]' => 1, ]; $this->drupalPostForm(NULL, $edit, 'Update'); $this->drupalPostForm(NULL, [], 'Save'); - $this->assertSession()->pageTextContains('ends in 1 year 1 month 1 week'); - $this->assertSession()->pageTextContains('started 1 year 1 month 1 week ago'); + $this->assertSession()->pageTextContains('ends in 1 year'); + $this->assertSession()->pageTextContains('started 1 year ago'); } }