comparison core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
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.