File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
modules/datetime/tests/src/Functional
tests/Drupal/FunctionalTests/Datetime Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ public function testSettings() {
110110 $ edit = [
111111 'fields[field_datetime][settings_edit_form][settings][future_format] ' => 'ends in @interval ' ,
112112 'fields[field_datetime][settings_edit_form][settings][past_format] ' => 'started @interval ago ' ,
113- 'fields[field_datetime][settings_edit_form][settings][granularity] ' => 3 ,
113+ 'fields[field_datetime][settings_edit_form][settings][granularity] ' => 1 ,
114114 ];
115115 $ this ->drupalPostForm (NULL , $ edit , 'Update ' );
116116 $ this ->drupalPostForm (NULL , [], 'Save ' );
117117
118- $ this ->assertSession ()->pageTextContains ('ends in 1 year 1 month 1 week ' );
119- $ this ->assertSession ()->pageTextContains ('started 1 year 1 month 1 week ago ' );
118+ $ this ->assertSession ()->pageTextContains ('ends in 1 year ' );
119+ $ this ->assertSession ()->pageTextContains ('started 1 year ago ' );
120120 }
121121
122122}
Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ public function testSettings() {
110110 $ edit = [
111111 'fields[field_timestamp][settings_edit_form][settings][future_format] ' => 'ends in @interval ' ,
112112 'fields[field_timestamp][settings_edit_form][settings][past_format] ' => 'started @interval ago ' ,
113- 'fields[field_timestamp][settings_edit_form][settings][granularity] ' => 3 ,
113+ 'fields[field_timestamp][settings_edit_form][settings][granularity] ' => 1 ,
114114 ];
115115 $ this ->drupalPostForm (NULL , $ edit , 'Update ' );
116116 $ this ->drupalPostForm (NULL , [], 'Save ' );
117117
118- $ this ->assertSession ()->pageTextContains ('ends in 1 year 1 month 1 week ' );
119- $ this ->assertSession ()->pageTextContains ('started 1 year 1 month 1 week ago ' );
118+ $ this ->assertSession ()->pageTextContains ('ends in 1 year ' );
119+ $ this ->assertSession ()->pageTextContains ('started 1 year ago ' );
120120 }
121121
122122}
You can’t perform that action at this time.
0 commit comments