From 37854b61dd6d2ce15b7d134f8e550ac7d7347199 Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Fri, 22 Sep 2017 10:59:52 +0200 Subject: [PATCH] dev #65075 add me to features list --- FEATURES/65075 | 10 ++++++++++ library/Class/Feature/List.php | 13 ++++++++++++- .../admin/controllers/FeatureControllerTest.php | 4 ++-- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 FEATURES/65075 diff --git a/FEATURES/65075 b/FEATURES/65075 new file mode 100644 index 00000000000..2445c7d341f --- /dev/null +++ b/FEATURES/65075 @@ -0,0 +1,10 @@ + '65075' => + ['Label' => $this->_('Nouvelles fonctionnalités dans Bokeh'), + 'Desc' => '', + 'Image' => '', + 'Video' => '', + 'Category' => '', + 'Right' => function($feature_description, $user) {return true;}, + 'Wiki' => '', + 'Test' => '', + 'Date' => '2017-09-22'], \ No newline at end of file diff --git a/library/Class/Feature/List.php b/library/Class/Feature/List.php index 76621084855..941f987f4bc 100644 --- a/library/Class/Feature/List.php +++ b/library/Class/Feature/List.php @@ -26,6 +26,17 @@ class Class_Feature_List { public function getFeatures() { return [ + '65075' => + ['Label' => $this->_('Nouvelles fonctionnalités'), + 'Desc' => $this->_('Bienvenue dans votre votre liste des nouvelles fonctionnalités'), + 'Image' => '', + 'Video' => '', + 'Category' => $this->_('Administration'), + 'Right' => function($feature_description, $user) {return true;}, + 'Wiki' => 'http://wiki.bokeh-library-portal.org/index.php?title=Nouvelles_fonctionnalit%C3%A9s', + 'Test' => '', + 'Date' => '2017-09-22'], + '61314' => ['Label' => $this->_('Explorateur de fichiers'), 'Desc' => $this->_('Gérer les fichiers dont vous avez besoin pour enrichir vos contenus'), @@ -37,7 +48,7 @@ class Class_Feature_List { }, 'Wiki' => 'http://wiki.bokeh-library-portal.org/index.php?title=Explorateur_de_fichiers', 'Test' => '/admin/file-manager/full_screen/1/display_mode_browser/wall?browser=userfiles/image', - 'Date' => '2017-09-15'], + 'Date' => '2017-09-22'], ]; } diff --git a/tests/application/modules/admin/controllers/FeatureControllerTest.php b/tests/application/modules/admin/controllers/FeatureControllerTest.php index 156452ec6b0..9696510297d 100644 --- a/tests/application/modules/admin/controllers/FeatureControllerTest.php +++ b/tests/application/modules/admin/controllers/FeatureControllerTest.php @@ -141,7 +141,7 @@ class FeatureControllerShowDispatchTest extends Admin_AbstractControllerTestCase /** @test */ - public function feature61314ShouldAppearAsNewForUser() { - $this->assertEquals(61314, (new Class_Feature)->findNewFor(Class_Users::getIdentity())[0]->getId()); + public function featureShouldAppearAsNewForUser() { + $this->assertNotNull((new Class_Feature)->findNewFor(Class_Users::getIdentity())[0]->getId()); } } \ No newline at end of file -- GitLab