Skip to content

Commit

Permalink
Merge pull request #5 from mostafamaklad/analysis-8bJm9a
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mostafamaklad committed Aug 29, 2017
2 parents e57f9f0 + bbb5d2e commit 6bcc764
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions tests/BladeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ public function the_hasrole_directive_will_evaluate_true_when_the_logged_in_user

/** @test */
public function the_hasanyrole_directive_will_evaluate_false_when_the_logged_in_user_does_not_have_any_of_the_required_roles(
)
{
) {
$roles = ['writer', 'intern'];

auth()->setUser($this->getMember());
Expand All @@ -131,8 +130,7 @@ public function the_hasanyrole_directive_will_evaluate_false_when_the_logged_in_

/** @test */
public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_user_does_have_some_of_the_required_roles(
)
{
) {
$roles = ['member', 'writer', 'intern'];

auth()->setUser($this->getMember());
Expand All @@ -144,8 +142,7 @@ public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_u

/** @test */
public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_user_does_have_some_of_the_required_roles_for_the_given_guard(
)
{
) {
$roles = ['super-admin', 'moderator'];
$guard = 'admin';

Expand All @@ -157,8 +154,7 @@ public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_u

/** @test */
public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_user_does_have_some_of_the_required_roles_in_pipe(
)
{
) {
$guard = 'admin';

auth('admin')->setUser($this->getSuperAdmin());
Expand All @@ -168,8 +164,7 @@ public function the_hasanyrole_directive_will_evaluate_true_when_the_logged_in_u

/** @test */
public function the_hasanyrole_directive_will_evaluate_false_when_the_logged_in_user_doesnt_have_some_of_the_required_roles_in_pipe(
)
{
) {
$guard = '';

auth('admin')->setUser($this->getMember());
Expand All @@ -180,8 +175,7 @@ public function the_hasanyrole_directive_will_evaluate_false_when_the_logged_in_

/** @test */
public function the_hasallroles_directive_will_evaluate_false_when_the_logged_in_user_does_not_have_all_required_roles(
)
{
) {
$roles = ['member', 'writer'];

auth()->setUser($this->getMember());
Expand Down Expand Up @@ -211,8 +205,7 @@ public function the_hasallroles_directive_will_evaluate_true_when_the_logged_in_

/** @test */
public function the_hasallroles_directive_will_evaluate_true_when_the_logged_in_user_does_have_all_required_roles_for_the_given_guard(
)
{
) {
$roles = ['super-admin', 'moderator'];
$guard = 'admin';

Expand All @@ -230,8 +223,7 @@ public function the_hasallroles_directive_will_evaluate_true_when_the_logged_in_

/** @test */
public function the_hasallroles_directive_will_evaluate_true_when_the_logged_in_user_does_have_all_required_roles_in_pipe(
)
{
) {
$guard = 'admin';

$admin = $this->getSuperAdmin();
Expand All @@ -248,8 +240,7 @@ public function the_hasallroles_directive_will_evaluate_true_when_the_logged_in_

/** @test */
public function the_hasallroles_directive_will_evaluate_false_when_the_logged_in_user_doesnt_have_all_required_roles_in_pipe(
)
{
) {
$guard = '';
$user = $this->getMember();

Expand Down

0 comments on commit 6bcc764

Please sign in to comment.