diff core/modules/config/tests/src/Functional/ConfigDependencyWebTest.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
line wrap: on
line diff
--- a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php	Thu May 09 15:34:47 2019 +0100
@@ -58,14 +58,14 @@
     );
     $entity2->save();
 
-    $this->drupalGet($entity2->urlInfo('delete-form'));
+    $this->drupalGet($entity2->toUrl('delete-form'));
     $this->assertNoText(t('Configuration updates'), 'No configuration updates found.');
     $this->assertNoText(t('Configuration deletions'), 'No configuration deletes found.');
-    $this->drupalGet($entity1->urlInfo('delete-form'));
+    $this->drupalGet($entity1->toUrl('delete-form'));
     $this->assertNoText(t('Configuration updates'), 'No configuration updates found.');
     $this->assertText(t('Configuration deletions'), 'Configuration deletions found.');
     $this->assertText($entity2->id(), 'Entity2 id found');
-    $this->drupalPostForm($entity1->urlInfo('delete-form'), [], 'Delete');
+    $this->drupalPostForm($entity1->toUrl('delete-form'), [], 'Delete');
     $storage->resetCache();
     $this->assertFalse($storage->loadMultiple([$entity1->id(), $entity2->id()]), 'Test entities deleted');
 
@@ -109,13 +109,13 @@
     );
     $entity3->save();
 
-    $this->drupalGet($entity1->urlInfo('delete-form'));
+    $this->drupalGet($entity1->toUrl('delete-form'));
     $this->assertText(t('Configuration updates'), 'Configuration updates found.');
     $this->assertNoText(t('Configuration deletions'), 'No configuration deletions found.');
     $this->assertNoText($entity2->id(), 'Entity2 id not found');
     $this->assertText($entity2->label(), 'Entity2 label not found');
     $this->assertNoText($entity3->id(), 'Entity3 id not found');
-    $this->drupalPostForm($entity1->urlInfo('delete-form'), [], 'Delete');
+    $this->drupalPostForm($entity1->toUrl('delete-form'), [], 'Delete');
     $storage->resetCache();
     $this->assertFalse($storage->load('entity1'), 'Test entity 1 deleted');
     $entity2 = $storage->load('entity2');