Skip to content

Commit 8dd7037

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 012b6d6 commit 8dd7037

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

tests/Feature/AuthTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
->assertInvalid([
4242
'name' => 'The name field is required.',
4343
'email' => 'The email field is required.',
44-
'username'=> 'The username field is required.',
45-
'rules'=> 'The rules must be accepted.',
44+
'username' => 'The username field is required.',
45+
'rules' => 'The rules must be accepted.',
4646
]);
4747
});
4848

@@ -56,7 +56,7 @@
5656
'terms' => true,
5757
])
5858
->assertInvalid([
59-
'username' => 'The username must only contain letters, numbers, dashes and underscores.'
59+
'username' => 'The username must only contain letters, numbers, dashes and underscores.',
6060
]);
6161
});
6262

@@ -65,17 +65,17 @@
6565

6666
$response = $this->withSession(['githubData' => ['id' => 123, 'username' => 'johndoe']])
6767
->post('/register', [
68-
'name'=> 'John Doe',
68+
'name' => 'John Doe',
6969
'email' => '[email protected]',
7070
'username' => 'johndoe',
7171
'rules' => true,
72-
'terms' => true
72+
'terms' => true,
7373
]);
7474

7575
$this->followRedirects($response)
7676
->assertSee(new HtmlString(
7777
'We already found a user with the given GitHub account (@johndoe). Would you like to <a href="http://localhost/login">login</a> instead?'
78-
)
78+
)
7979
);
8080
});
8181

@@ -100,9 +100,9 @@
100100
$this->createUser();
101101

102102
$this->post('login', [
103-
'username' => 'johndoe',
104-
'password' => 'password'
105-
]);
103+
'username' => 'johndoe',
104+
'password' => 'password',
105+
]);
106106

107107
$this->assertAuthenticated();
108108
});
@@ -125,7 +125,7 @@
125125

126126
$response->assertInvalid([
127127
'username' => 'The username field is required.',
128-
'password' => 'The password field is required.'
128+
'password' => 'The password field is required.',
129129
]);
130130
});
131131

@@ -134,11 +134,11 @@
134134

135135
$response = $this->post('login', [
136136
'username' => 'johndoe',
137-
'password' => 'invalidpass'
137+
'password' => 'invalidpass',
138138
]);
139139

140140
$response->assertInvalid([
141-
'username' => 'These credentials do not match our records.'
141+
'username' => 'These credentials do not match our records.',
142142
]);
143143
});
144144

@@ -148,7 +148,7 @@
148148
$response = $this->actingAs($user)
149149
->post('/login', [
150150
'username' => 'johndoe',
151-
'password' => 'password'
151+
'password' => 'password',
152152
])
153153
->assertRedirect('/');
154154

@@ -172,9 +172,9 @@
172172
$this->createUser();
173173

174174
$this->post('password/email', [
175-
'email' => '[email protected]'
175+
'email' => '[email protected]',
176176
])
177-
->assertSessionHas('status', 'We have emailed your password reset link!');
177+
->assertSessionHas('status', 'We have emailed your password reset link!');
178178
});
179179

180180
test('users can reset their password', function () {
@@ -184,21 +184,21 @@
184184
$token = $this->app[PasswordBroker::class]->getRepository()->create($user);
185185

186186
$this->post('/password/reset', [
187-
'token' => $token,
188-
'email' => '[email protected]',
189-
'password' => 'QFq^$cz#P@MZa5z7',
190-
'password_confirmation' => 'QFq^$cz#P@MZa5z7'
191-
])
187+
'token' => $token,
188+
'email' => '[email protected]',
189+
'password' => 'QFq^$cz#P@MZa5z7',
190+
'password_confirmation' => 'QFq^$cz#P@MZa5z7',
191+
])
192192
->assertRedirect();
193193

194194
$this->actingAs($user)
195195
->post('logout');
196-
196+
197197
assertLoggedOut();
198198

199199
$this->post('login', [
200200
'username' => 'johndoe',
201-
'password' => 'QFq^$cz#P@MZa5z7'
201+
'password' => 'QFq^$cz#P@MZa5z7',
202202
]);
203203

204204
assertLoggedIn();
@@ -214,11 +214,11 @@
214214
'token' => $token,
215215
'email' => '[email protected]',
216216
'password' => 'password',
217-
'password_confirmation' => 'password'
217+
'password_confirmation' => 'password',
218218
]);
219219

220220
$response->assertSessionHasErrors([
221-
'password' => 'The given password has appeared in a data leak. Please choose a different password.'
221+
'password' => 'The given password has appeared in a data leak. Please choose a different password.',
222222
]);
223223
});
224224

tests/Feature/ForumTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
'body' => 'This text explains how to work with Eloquent.',
9999
'tags' => [$tag->id()],
100100
])
101-
->assertRedirect('/forum/how-to-work-with-eloquent')
102-
->assertSessionHas('success', 'Thread successfully updated!');
101+
->assertRedirect('/forum/how-to-work-with-eloquent')
102+
->assertSessionHas('success', 'Thread successfully updated!');
103103
});
104104

105105
test('users cannot edit a thread they do not own', function () {
@@ -266,7 +266,7 @@
266266
$this->get("/forum/tags/{$tag->slug}?filter=something-invalid")
267267
->assertSeeInOrder([
268268
new HtmlString('href="http://localhost/forum/tags/'.$tag->slug.'?filter=recent'),
269-
new HtmlString('aria-current="page"')
269+
new HtmlString('aria-current="page"'),
270270
]);
271271

272272
});

tests/Feature/SettingsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
'password_confirmation' => 'newpassword',
117117
])
118118
->assertInvalid([
119-
'password' => 'The given password has appeared in a data leak. Please choose a different password.'
119+
'password' => 'The given password has appeared in a data leak. Please choose a different password.',
120120
]);
121121

122122
$this->followRedirects($response)
@@ -211,7 +211,7 @@
211211
])
212212
->assertRedirect('/settings');
213213

214-
$this->followRedirects($response)
214+
$this->followRedirects($response)
215215
->assertSee('API token successfully removed.');
216216

217217
expect($user->refresh()->tokens)->toBeEmpty();

0 commit comments

Comments
 (0)