Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit a722b65

Browse files
victorlapStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 7625ac5 commit a722b65

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

tests/BaseTest.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
use Victorlap\Approvable\Tests\Models\UserCanApprove;
77
use Victorlap\Approvable\Tests\Models\UserCannotApprove;
88

9-
10-
class BaseTests extends TestCase
9+
class BaseTest extends TestCase
1110
{
12-
1311
private function returnUserInstance($model = User::class)
1412
{
1513
$instance = new $model([
@@ -21,39 +19,43 @@ private function returnUserInstance($model = User::class)
2119
return $instance;
2220
}
2321

24-
public function testApproverCanCreate() {
22+
public function testApproverCanCreate()
23+
{
2524
$user = $this->returnUserInstance(UserCanApprove::class);
2625

2726
$user->save();
2827

2928
$this->assertTrue($user->exists);
3029
}
3130

32-
public function testRegularCanCreate() {
31+
public function testRegularCanCreate()
32+
{
3333
$user = $this->returnUserInstance(UserCannotApprove::class);
3434

3535
$user->save();
3636

3737
$this->assertTrue($user->exists);
3838
}
3939

40-
public function testApproverCanEdit() {
40+
public function testApproverCanEdit()
41+
{
4142
$user = $this->returnUserInstance(UserCanApprove::class);
4243
$user->save();
4344

4445
$user->name = 'Doe John';
4546
$user->save();
4647

47-
$this->assertEquals('Doe John', $user->fresh()->name);
48+
$this->assertEquals('Doe John', $user->fresh()->name);
4849
}
4950

50-
public function testRegularCannotEdit() {
51+
public function testRegularCannotEdit()
52+
{
5153
$user = $this->returnUserInstance(UserCannotApprove::class);
5254
$user->save();
5355

5456
$user->name = 'Doe John';
5557
$user->save();
5658

57-
$this->assertEquals('John Doe', $user->fresh()->name);
59+
$this->assertEquals('John Doe', $user->fresh()->name);
5860
}
59-
}
61+
}

tests/Models/UserCanApprove.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Victorlap\Approvable\Tests\Models;
44

5-
65
class UserCanApprove extends User
76
{
87
protected function currentUserCanApprove()
98
{
109
return true;
1110
}
12-
}
11+
}

tests/Models/UserCannotApprove.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Victorlap\Approvable\Tests\Models;
44

5-
65
class UserCannotApprove extends User
76
{
87
protected function currentUserCanApprove()
98
{
109
return false;
1110
}
12-
}
11+
}

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ protected function getPackageProviders($app)
5454
ConsoleServiceProvider::class,
5555
];
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)