comparison core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
302 $edit = [ 302 $edit = [
303 $lid => $translation, 303 $lid => $translation,
304 ]; 304 ];
305 $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations')); 305 $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
306 $this->assertText(t('The strings have been saved.'), 'The strings have been saved.'); 306 $this->assertText(t('The strings have been saved.'), 'The strings have been saved.');
307 $this->assertUrl(\Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), [], 'Correct page redirection.'); 307 $this->assertUrl(Url::fromRoute('locale.translate_page', [], ['absolute' => TRUE])->toString(), [], 'Correct page redirection.');
308 $this->drupalLogout(); 308 $this->drupalLogout();
309 309
310 // Log in the adminUser. Check the admin menu subtrees hash now that one 310 // Log in the adminUser. Check the admin menu subtrees hash now that one
311 // of the link items in the Structure tree (Menus) has had its text 311 // of the link items in the Structure tree (Menus) has had its text
312 // translated. 312 // translated.