styling
This commit is contained in:
parent
395ae5dee1
commit
b80d6060c7
@ -26,7 +26,7 @@ class PermissionsTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldCreatePermission()
|
public function testItShouldCreatePermission()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
->post(route('permissions.store'), $request)
|
->post(route('permissions.store'), $request)
|
||||||
@ -34,12 +34,12 @@ class PermissionsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('permissions', $request);
|
$this->assertDatabaseHas('permissions', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldSeePermissionUpdatePage()
|
public function testItShouldSeePermissionUpdatePage()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$permission = $this->dispatch(new CreatePermission($request));
|
$permission = $this->dispatch(new CreatePermission($request));
|
||||||
|
|
||||||
@ -64,12 +64,12 @@ class PermissionsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('permissions', $request);
|
$this->assertDatabaseHas('permissions', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldDeletePermission()
|
public function testItShouldDeletePermission()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$permission = $this->dispatch(new CreatePermission($request));
|
$permission = $this->dispatch(new CreatePermission($request));
|
||||||
|
|
||||||
@ -79,8 +79,7 @@ class PermissionsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseMissing('permissions', $request);
|
$this->assertDatabaseMissing('permissions', $request);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
|
@ -26,7 +26,7 @@ class RolesTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldCreateRole()
|
public function testItShouldCreateRole()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
->post(route('roles.store'), $request)
|
->post(route('roles.store'), $request)
|
||||||
@ -34,12 +34,12 @@ class RolesTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('roles', $this->getAssertRequest($request));
|
$this->assertDatabaseHas('roles', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldSeeRoleUpdatePage()
|
public function testItShouldSeeRoleUpdatePage()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$role = $this->dispatch(new CreateRole($request));
|
$role = $this->dispatch(new CreateRole($request));
|
||||||
|
|
||||||
@ -64,12 +64,12 @@ class RolesTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('roles', $this->getAssertRequest($request));
|
$this->assertDatabaseHas('roles', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldDeleteRole()
|
public function testItShouldDeleteRole()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$role = $this->dispatch(new CreateRole($request));
|
$role = $this->dispatch(new CreateRole($request));
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class RolesTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseMissing('roles', $this->getAssertRequest($request));
|
$this->assertDatabaseMissing('roles', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
|
@ -26,7 +26,7 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldCreateUser()
|
public function testItShouldCreateUser()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
->post(route('users.store'), $request)
|
->post(route('users.store'), $request)
|
||||||
@ -34,12 +34,12 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('users', $this->getAssertRequest($request));
|
$this->assertDatabaseHas('users', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldSeeUserUpdatePage()
|
public function testItShouldSeeUserUpdatePage()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$user = $this->dispatch(new CreateUser($request));
|
$user = $this->dispatch(new CreateUser($request));
|
||||||
|
|
||||||
@ -64,12 +64,12 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('users', $this->getAssertRequest($request));
|
$this->assertDatabaseHas('users', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldDeleteUser()
|
public function testItShouldDeleteUser()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$user = $this->dispatch(new CreateUser($request));
|
$user = $this->dispatch(new CreateUser($request));
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertSoftDeleted('users', $this->getAssertRequest($request));
|
$this->assertSoftDeleted('users', $this->getAssertRequest($request));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldSeeLoginPage()
|
public function testItShouldSeeLoginPage()
|
||||||
@ -91,7 +91,7 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldLoginUser()
|
public function testItShouldLoginUser()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$user = $this->dispatch(new CreateUser($request));
|
$user = $this->dispatch(new CreateUser($request));
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldNotLoginUser()
|
public function testItShouldNotLoginUser()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$user = $this->dispatch(new CreateUser($request));
|
$user = $this->dispatch(new CreateUser($request));
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ class UsersTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldLogoutUser()
|
public function testItShouldLogoutUser()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$user = $this->dispatch(new CreateUser($request));
|
$user = $this->dispatch(new CreateUser($request));
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class AccountsTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldCreateAccount()
|
public function testItShouldCreateAccount()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
->post(route('accounts.store'), $request)
|
->post(route('accounts.store'), $request)
|
||||||
@ -34,12 +34,12 @@ class AccountsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('accounts', $request);
|
$this->assertDatabaseHas('accounts', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldSeeAccountUpdatePage()
|
public function testItShouldSeeAccountUpdatePage()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$account = $this->dispatch(new CreateAccount($request));
|
$account = $this->dispatch(new CreateAccount($request));
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ class AccountsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertDatabaseHas('accounts', $request);
|
$this->assertDatabaseHas('accounts', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testItShouldDeleteAccount()
|
public function testItShouldDeleteAccount()
|
||||||
@ -79,7 +79,7 @@ class AccountsTest extends FeatureTestCase
|
|||||||
|
|
||||||
$this->assertFlashLevel('success');
|
$this->assertFlashLevel('success');
|
||||||
|
|
||||||
$this->assertSoftDeleted('accounts', $request);
|
$this->assertSoftDeleted('accounts', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
|
@ -25,7 +25,7 @@ class ReconciliationsTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldCreateReconciliation()
|
public function testItShouldCreateReconciliation()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
->post(route('reconciliations.store'), $request)
|
->post(route('reconciliations.store'), $request)
|
||||||
@ -36,7 +36,7 @@ class ReconciliationsTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldSeeReconciliationUpdatePage()
|
public function testItShouldSeeReconciliationUpdatePage()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$reconciliation = $this->dispatch(new CreateReconciliation($request));
|
$reconciliation = $this->dispatch(new CreateReconciliation($request));
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ class ReconciliationsTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testItShouldDeleteReconciliation()
|
public function testItShouldDeleteReconciliation()
|
||||||
{
|
{
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$reconciliation = $this->dispatch(new CreateReconciliation($request));
|
$reconciliation = $this->dispatch(new CreateReconciliation($request));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user