Mercurial > hg > isophonics-drupal-site
comparison core/modules/image/tests/src/Functional/ImageStyleFlushTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
27 $files = $this->drupalGetTestFiles('image'); | 27 $files = $this->drupalGetTestFiles('image'); |
28 $file = reset($files); | 28 $file = reset($files); |
29 } | 29 } |
30 | 30 |
31 // Make sure we have an image in our wrapper testing file directory. | 31 // Make sure we have an image in our wrapper testing file directory. |
32 $source_uri = file_unmanaged_copy($file->uri, $wrapper . '://'); | 32 $source_uri = \Drupal::service('file_system')->copy($file->uri, $wrapper . '://'); |
33 // Build the derivative image. | 33 // Build the derivative image. |
34 $derivative_uri = $style->buildUri($source_uri); | 34 $derivative_uri = $style->buildUri($source_uri); |
35 $derivative = $style->createDerivative($source_uri, $derivative_uri); | 35 $derivative = $style->createDerivative($source_uri, $derivative_uri); |
36 | 36 |
37 return $derivative ? $derivative_uri : FALSE; | 37 return $derivative ? $derivative_uri : FALSE; |