diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsDynamicValuesTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsDynamicValuesTest.php index 21358c9..e371498 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsDynamicValuesTest.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsDynamicValuesTest.php @@ -28,6 +28,13 @@ class OptionsDynamicValuesTest extends FieldTestBase { */ protected $entity; + /** + * The created entity. + * + * @var \Drupal\Core\Entity\Entity + */ + protected $entity_1; + function setUp() { parent::setUp(); @@ -74,12 +81,11 @@ function setUp() { ); $this->entity_1 = entity_create('entity_test_rev', $values); $this->entity_1->save(); - $uri = $this->entity_1->uri(); $this->test_1 = array( 'label' => $this->entity_1->label(), 'uuid' => $this->entity_1->uuid(), 'bundle' => $this->entity_1->bundle(), - 'uri' => $uri['path'], + 'uri' => $this->entity_1->url(), ); } }