clearstatcache(TRUE,
$destination_path);
$modified_timestamp =
(new \
SplFileInfo($destination_path))->
getMTime();
$this->
assertGreaterThan($timestamp,
$modified_timestamp);
} /**
* Provides the source and destination path files.
*/
public function providerSuccessfulReuse() { return [ [ 'local_source_path' =>
static::
getDrupalRoot() . '/core/tests/fixtures/files/image-test.jpg',
'local_destination_path' => 'public://file1.jpg',
],
[ 'remote_source_path' => 'https://www.drupal.org/favicon.ico',
'remote_destination_path' => 'public://file2.jpg',
],
];
} /**
* Tests successful moves.
*/