Skip to content
Snippets Groups Projects
Commit 75498bbf authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline#78596_compte_administrateur_erreur_500_inaccessible' into 'hotline'

hotline #78596 fix features list

See merge request !2787
parents eed48266 4853f0a4
Branches
Tags
4 merge requests!2806Master,!2789Master,!2788Hotline,!2787hotline #78596 fix features list
Pipeline #4790 passed with stage
in 47 minutes and 16 seconds
- ticket #78596 : Administration : correction de la liste des nouvelles fonctionnalités lorsqu'une fonctionnalité supprimé avait été marquée comme vue.
\ No newline at end of file
......@@ -84,7 +84,7 @@ class Class_Feature {
if(!$ids)
return [];
return array_values(array_map([$this, 'find'], $ids));
return array_filter(array_values(array_map([$this, 'find'], $ids)));
}
......
......@@ -163,4 +163,26 @@ class FeatureControllerShowDispatchTest extends Admin_AbstractControllerTestCase
public function featureShouldAppearAsNewForUser() {
$this->assertNotNull((new Class_Feature)->findNewFor(Class_Users::getIdentity())[0]->getId());
}
}
class FeatureControllerNullFeatureTest extends ModelTestCase {
protected $_storm_default_to_volatile = true;
/** @test */
public function contextShouldExpectation() {
$user = $this->fixture('Class_Users',
['id' => 3232,
'login' => 'I check features',
'password' => 'because i m strong']);
Class_User_Settings::newWith($user)
->addCheckedFeature(789789789798)
->save();
$this->assertNotNull((new Class_Feature)->findNewFor($user));
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment