Fix unit tests for system tag filter section
This commit is contained in:
parent
e378a757ff
commit
847a2426b8
|
@ -168,6 +168,15 @@ class ViewControllerTest extends TestCase {
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
],
|
],
|
||||||
2 => [
|
2 => [
|
||||||
|
'id' => 'systemtagsfilter',
|
||||||
|
'appname' => 'systemtags',
|
||||||
|
'script' => 'list.php',
|
||||||
|
'order' => 9,
|
||||||
|
'name' => new \OC_L10N_String(new \OC_L10N('systemtags'), 'Tags', []),
|
||||||
|
'active' => false,
|
||||||
|
'icon' => '',
|
||||||
|
],
|
||||||
|
3 => [
|
||||||
'id' => 'sharingin',
|
'id' => 'sharingin',
|
||||||
'appname' => 'files_sharing',
|
'appname' => 'files_sharing',
|
||||||
'script' => 'list.php',
|
'script' => 'list.php',
|
||||||
|
@ -176,7 +185,7 @@ class ViewControllerTest extends TestCase {
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
],
|
],
|
||||||
3 => [
|
4 => [
|
||||||
'id' => 'sharingout',
|
'id' => 'sharingout',
|
||||||
'appname' => 'files_sharing',
|
'appname' => 'files_sharing',
|
||||||
'script' => 'list.php',
|
'script' => 'list.php',
|
||||||
|
@ -185,7 +194,7 @@ class ViewControllerTest extends TestCase {
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
],
|
],
|
||||||
4 => [
|
5 => [
|
||||||
'id' => 'sharinglinks',
|
'id' => 'sharinglinks',
|
||||||
'appname' => 'files_sharing',
|
'appname' => 'files_sharing',
|
||||||
'script' => 'list.php',
|
'script' => 'list.php',
|
||||||
|
@ -194,7 +203,7 @@ class ViewControllerTest extends TestCase {
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
],
|
],
|
||||||
5 => [
|
6 => [
|
||||||
'id' => 'trashbin',
|
'id' => 'trashbin',
|
||||||
'appname' => 'files_trashbin',
|
'appname' => 'files_trashbin',
|
||||||
'script' => 'list.php',
|
'script' => 'list.php',
|
||||||
|
@ -227,18 +236,22 @@ class ViewControllerTest extends TestCase {
|
||||||
'content' => null,
|
'content' => null,
|
||||||
],
|
],
|
||||||
2 => [
|
2 => [
|
||||||
'id' => 'sharingin',
|
'id' => 'systemtagsfilter',
|
||||||
'content' => null,
|
'content' => null,
|
||||||
],
|
],
|
||||||
3 => [
|
3 => [
|
||||||
'id' => 'sharingout',
|
'id' => 'sharingin',
|
||||||
'content' => null,
|
'content' => null,
|
||||||
],
|
],
|
||||||
4 => [
|
4 => [
|
||||||
'id' => 'sharinglinks',
|
'id' => 'sharingout',
|
||||||
'content' => null,
|
'content' => null,
|
||||||
],
|
],
|
||||||
5 => [
|
5 => [
|
||||||
|
'id' => 'sharinglinks',
|
||||||
|
'content' => null,
|
||||||
|
],
|
||||||
|
6 => [
|
||||||
'id' => 'trashbin',
|
'id' => 'trashbin',
|
||||||
'content' => null,
|
'content' => null,
|
||||||
],
|
],
|
||||||
|
|
|
@ -76,7 +76,7 @@ $mapperListener = function(MapperEvent $event) use ($activityManager) {
|
||||||
$eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener);
|
$eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener);
|
||||||
$eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener);
|
$eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener);
|
||||||
|
|
||||||
$l = \OC::$server->getL10N('files_sharing');
|
$l = \OC::$server->getL10N('systemtags');
|
||||||
|
|
||||||
\OCA\Files\App::getNavigationManager()->add(
|
\OCA\Files\App::getNavigationManager()->add(
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue