Laravel Pint fixes
This commit is contained in:
parent
7a58287b34
commit
126bb29ae2
50 changed files with 299 additions and 299 deletions
|
@ -11,21 +11,21 @@ use Tests\TestCase;
|
|||
class AdminTest extends TestCase
|
||||
{
|
||||
#[Test]
|
||||
public function adminPageRedirectsUnauthorisedUsersToLoginPage(): void
|
||||
public function admin_page_redirects_unauthorised_users_to_login_page(): void
|
||||
{
|
||||
$response = $this->get('/admin');
|
||||
$response->assertRedirect('/login');
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function loginPageLoads(): void
|
||||
public function login_page_loads(): void
|
||||
{
|
||||
$response = $this->get('/login');
|
||||
$response->assertViewIs('login');
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function loginAttemptWithBadCredentialsFails(): void
|
||||
public function login_attempt_with_bad_credentials_fails(): void
|
||||
{
|
||||
$response = $this->post('/login', [
|
||||
'username' => 'bad',
|
||||
|
@ -35,7 +35,7 @@ class AdminTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function loginSucceeds(): void
|
||||
public function login_succeeds(): void
|
||||
{
|
||||
User::factory([
|
||||
'name' => 'admin',
|
||||
|
@ -51,7 +51,7 @@ class AdminTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function whenLoggedInRedirectsToAdminPage(): void
|
||||
public function when_logged_in_redirects_to_admin_page(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
$response = $this->actingAs($user)->get('/login');
|
||||
|
@ -59,14 +59,14 @@ class AdminTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function loggedOutUsersSimplyRedirected(): void
|
||||
public function logged_out_users_simply_redirected(): void
|
||||
{
|
||||
$response = $this->get('/logout');
|
||||
$response->assertRedirect('/');
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function loggedInUsersShownLogoutForm(): void
|
||||
public function logged_in_users_shown_logout_form(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
$response = $this->actingAs($user)->get('/logout');
|
||||
|
@ -74,7 +74,7 @@ class AdminTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function loggedInUsersCanLogout(): void
|
||||
public function logged_in_users_can_logout(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
$response = $this->actingAs($user)->post('/logout');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue