diff --git a/tests/integration/extenders/PolicyTest.php b/tests/integration/extenders/PolicyTest.php index dc4a056624..efe4d5430b 100644 --- a/tests/integration/extenders/PolicyTest.php +++ b/tests/integration/extenders/PolicyTest.php @@ -82,8 +82,8 @@ public function unrelated_user_cant_hide_discussion_if_denied() { $this->extend( (new Extend\Policy(Discussion::class)) - ->add(CustomPolicy::class) ->add(DenyHidePolicy::class) + ->add(CustomPolicy::class) ); $this->prepDb(); @@ -102,9 +102,9 @@ public function unrelated_user_can_hide_discussion_if_force_allowed() { $this->extend( (new Extend\Policy(Discussion::class)) - ->add(CustomPolicy::class) - ->add(DenyHidePolicy::class) ->add(ForceAllowHidePolicy::class) + ->add(DenyHidePolicy::class) + ->add(CustomPolicy::class) ); $this->prepDb(); @@ -125,10 +125,10 @@ public function unrelated_user_cant_hide_discussion_if_force_denied() // order isn't considered, as the last result overrides all. $this->extend( (new Extend\Policy(Discussion::class)) - ->add(CustomPolicy::class) ->add(DenyHidePolicy::class) - ->add(ForceAllowHidePolicy::class) ->add(ForceDenyHidePolicy::class) + ->add(CustomPolicy::class) + ->add(ForceAllowHidePolicy::class) ); $this->prepDb();