diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php index f7b797c..19f18f2 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php @@ -85,7 +85,8 @@ public function setUp() { // Set URIs. // Image. $image_file = file_load($this->article->get('field_image')->offsetGet(0)->get('target_id')->getValue()); - $this->imageUri = image_style_url('large', $image_file->getFileUri()); + $style = entity_load('image_style', 'large'); + $this->imageUri = $style->buildUrl($image_file->getFileUri()); // Term. $term_uri_info = $this->term->uri(); $this->termUri = url($term_uri_info['path'], array('absolute' => TRUE)); @@ -164,7 +165,8 @@ protected function _testFrontPageRDFa() { // @todo Once the image points to the original instead of the processed // image, move this to testArticleProperties(). $image_file = file_load($this->article->get('field_image')->offsetGet(0)->get('target_id')->getValue()); - $image_uri = image_style_url('medium', $image_file->getFileUri()); + $style = entity_load('image_style', 'medium'); + $image_uri = $style->buildUrl($image_file->getFileUri()); $expected_value = array( 'type' => 'uri', 'value' => $image_uri,