X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Flibraries%2Ftests%2Fsrc%2FKernel%2FExternalLibrary%2FTestLibraryFilesStream.php;fp=web%2Fmodules%2Fcontrib%2Flibraries%2Ftests%2Fsrc%2FKernel%2FExternalLibrary%2FTestLibraryFilesStream.php;h=ec20647ead3187b8a3cee8a35cd5dfc9d101adb4;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/libraries/tests/src/Kernel/ExternalLibrary/TestLibraryFilesStream.php b/web/modules/contrib/libraries/tests/src/Kernel/ExternalLibrary/TestLibraryFilesStream.php new file mode 100644 index 000000000..ec20647ea --- /dev/null +++ b/web/modules/contrib/libraries/tests/src/Kernel/ExternalLibrary/TestLibraryFilesStream.php @@ -0,0 +1,80 @@ +moduleHandler = $module_handler; + $this->directory = (string) $directory; + + $this->setStringTranslation($string_translation); + } + + /** + * {@inheritdoc} + */ + public function getName() { + $this->t('Test library files'); + } + + /** + * {@inheritdoc} + */ + public function getDescription() { + $this->t('Provides access to test library files.'); + } + + /** + * {@inheritdoc} + */ + public function getDirectoryPath() { + $module_path = $this->moduleHandler->getModule('libraries')->getPath(); + return $module_path . '/tests/' . $this->directory; + } + +}