You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Http/Middleware/TrimStringsTest.php
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,13 @@ public function test_no_zero_width_space_character_returns_the_same_string()
16
16
$request = newRequest;
17
17
18
18
$request->merge([
19
-
'title' => 'This title does not contains any zero-width space',
19
+
'title' => 'This title does not contain any zero-width space',
20
20
]);
21
21
22
22
$middleware = newTrimStrings;
23
23
24
24
$middleware->handle($request, function ($req) {
25
-
$this->assertEquals('This title does not contains any zero-width space', $req->title);
25
+
$this->assertEquals('This title does not contain any zero-width space', $req->title);
26
26
});
27
27
}
28
28
@@ -34,13 +34,13 @@ public function test_leading_zero_width_space_character_is_trimmed()
34
34
$request = newRequest;
35
35
36
36
$request->merge([
37
-
'title' => 'This title contains a zero-width space at the begining',
37
+
'title' => 'This title contains a zero-width space at the beginning',
38
38
]);
39
39
40
40
$middleware = newTrimStrings;
41
41
42
42
$middleware->handle($request, function ($req) {
43
-
$this->assertEquals('This title contains a zero-width space at the begining', $req->title);
43
+
$this->assertEquals('This title contains a zero-width space at the beginning', $req->title);
44
44
});
45
45
}
46
46
@@ -70,13 +70,13 @@ public function test_leading_zero_width_non_breakable_space_character_is_trimmed
70
70
$request = newRequest;
71
71
72
72
$request->merge([
73
-
'title' => 'This title contains a zero-width non-breakable space at the begining',
73
+
'title' => 'This title contains a zero-width non-breakable space at the beginning',
74
74
]);
75
75
76
76
$middleware = newTrimStrings;
77
77
78
78
$middleware->handle($request, function ($req) {
79
-
$this->assertEquals('This title contains a zero-width non-breakable space at the begining', $req->title);
79
+
$this->assertEquals('This title contains a zero-width non-breakable space at the beginning', $req->title);
80
80
});
81
81
}
82
82
@@ -88,13 +88,13 @@ public function test_leading_multiple_zero_width_non_breakable_space_characters_
88
88
$request = newRequest;
89
89
90
90
$request->merge([
91
-
'title' => 'This title contains a zero-width non-breakable space at the begining',
91
+
'title' => 'This title contains a zero-width non-breakable space at the beginning',
92
92
]);
93
93
94
94
$middleware = newTrimStrings;
95
95
96
96
$middleware->handle($request, function ($req) {
97
-
$this->assertEquals('This title contains a zero-width non-breakable space at the begining', $req->title);
97
+
$this->assertEquals('This title contains a zero-width non-breakable space at the beginning', $req->title);
98
98
});
99
99
}
100
100
@@ -106,13 +106,13 @@ public function test_combination_of_leading_and_trailing_zero_width_non_breakabl
106
106
$request = newRequest;
107
107
108
108
$request->merge([
109
-
'title' => 'This title contains a combination of zero-width non-breakable space and zero-width spaces characters at the begining and the end',
109
+
'title' => 'This title contains a combination of zero-width non-breakable space and zero-width spaces characters at the beginning and the end',
110
110
]);
111
111
112
112
$middleware = newTrimStrings;
113
113
114
114
$middleware->handle($request, function ($req) {
115
-
$this->assertEquals('This title contains a combination of zero-width non-breakable space and zero-width spaces characters at the begining and the end', $req->title);
115
+
$this->assertEquals('This title contains a combination of zero-width non-breakable space and zero-width spaces characters at the beginning and the end', $req->title);
0 commit comments