diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-12-12 13:03:26 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-12-12 13:03:26 +0100 |
commit | 4f92e4a233a4235cddf7260818fbdf09f67aec49 (patch) | |
tree | 7753d5b48df089cb4effeaebd01ee130dc713009 /tests | |
parent | ffd5e93f70c5e866d0b1207896c98cef44da9ce6 (diff) | |
parent | 46def69574e15b4ec3230c7e6131b882397e210c (diff) | |
download | nextcloud-server-4f92e4a233a4235cddf7260818fbdf09f67aec49.tar.gz nextcloud-server-4f92e4a233a4235cddf7260818fbdf09f67aec49.zip |
Merge pull request #12808 from owncloud/add-special-parameterlist-to-manager
Add special parameterlist to manager
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/activitymanager.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/lib/activitymanager.php b/tests/lib/activitymanager.php index 0683eb68193..6a5af7b259b 100644 --- a/tests/lib/activitymanager.php +++ b/tests/lib/activitymanager.php @@ -59,6 +59,14 @@ class Test_ActivityManager extends \Test\TestCase { $this->assertFalse($result); } + public function testGetSpecialParameterList() { + $result = $this->activityManager->getSpecialParameterList('APP0', ''); + $this->assertEquals(array(0 => 'file', 1 => 'username'), $result); + + $result = $this->activityManager->getSpecialParameterList('APP1', ''); + $this->assertFalse($result); + } + public function testTypeIcon() { $result = $this->activityManager->getTypeIcon('NT1'); $this->assertEquals('icon-nt-one', $result); @@ -132,6 +140,14 @@ class SimpleExtension implements \OCP\Activity\IExtension { return false; } + public function getSpecialParameterList($app, $text) { + if ($app === 'APP0') { + return array(0 => 'file', 1 => 'username'); + } + + return false; + } + public function getTypeIcon($type) { if ($type === 'NT1') { return 'icon-nt-one'; @@ -185,6 +201,10 @@ class NoOpExtension implements \OCP\Activity\IExtension { return false; } + public function getSpecialParameterList($app, $text) { + return false; + } + public function getTypeIcon($type) { return false; } |