protected function KernelTestBasePlugin::getTestFileUri in IMCE 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/KernelTestBasePlugin.php \Drupal\Tests\imce\Kernel\Plugin\KernelTestBasePlugin::getTestFileUri()
Gets test image file.
Return value
string uri.
2 calls to KernelTestBasePlugin::getTestFileUri()
- DeleteTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ DeleteTest.php - ResizeTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ ResizeTest.php
File
- tests/
src/ Kernel/ Plugin/ KernelTestBasePlugin.php, line 134
Class
- KernelTestBasePlugin
- The abstract class base to imce kernel tests.
Namespace
Drupal\Tests\imce\Kernel\PluginCode
protected function getTestFileUri() {
\Drupal::service('file_system')
->copy(drupal_get_path('module', 'imce') . '/tests/files/ciandt.jpg', PublicStream::basePath());
return 'public://ciandt.jpg';
}