X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FUtil%2FSampleStorageBackend.php;h=f16c3a64158784814592ec649976cf9109835c94;hb=f6f4cbab9d8b973aa4acf3af43df9334a4cb291b;hp=3f4eb90ada0f91cbddc18426813ad9f4dd75b448;hpb=dbd5b5bb6e329ceb216fc2c13540e9f482129ccd;p=friendica.git diff --git a/tests/Util/SampleStorageBackend.php b/tests/Util/SampleStorageBackend.php index 3f4eb90ada..f16c3a6415 100644 --- a/tests/Util/SampleStorageBackend.php +++ b/tests/Util/SampleStorageBackend.php @@ -2,9 +2,10 @@ namespace Friendica\Test\Util; +use Friendica\Core\Hook; use Friendica\Model\Storage\IStorage; -use Friendica\Core\L10n\L10n; +use Friendica\Core\L10n; /** * A backend storage example class @@ -91,4 +92,13 @@ class SampleStorageBackend implements IStorage { return self::NAME; } + + /** + * This one is a hack to register this class to the hook + */ + public static function registerHook() + { + Hook::register('storage_instance', __DIR__ . '/SampleStorageBackendInstance.php', 'create_instance'); + } } +