Passed
Push — develop ( 58ca2f...a1a700 )
by Freddie
09:12
created
tests/Unit/Factories/User/MySQLUserFactoryTest.php 1 patch
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $user = new User($name, $password);
36 36
         $this->assertEquals(<<<T
37 37
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
38
-T
38
+t
39 39
 , $user->toSqlCreate());
40 40
     }
41 41
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $user = new User($name, $password, $host);
49 49
         $this->assertEquals(<<<T
50 50
 CREATE USER '$name'@'$host' IDENTIFIED BY '$password';
51
-T
51
+t
52 52
 , $user->toSqlCreate());
53 53
     }
54 54
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $user = new User($name, $password, $host);
66 66
         $this->assertEquals(<<<T
67 67
 DROP USER '$name'@'%';
68
-T
68
+t
69 69
 , $user->toSqlDrop());
70 70
     }
71 71
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $user = new User($name, $password, $host);
79 79
         $this->assertEquals(<<<T
80 80
 DROP USER '$name'@'$host';
81
-T
81
+t
82 82
 , $user->toSqlDrop());
83 83
     }
84 84
 
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
         $user = new User($name, $password);
96 96
         $user->setGrant($permission);
97 97
         $this->assertEquals(<<<T
98
-GRANT $permission ON *.* TO '$name'@'%';
99
-T
98
+grant $permission ON *.* TO '$name'@'%';
99
+t
100 100
 , $user->toSqlPrivileges());
101 101
     }
102 102
 
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
         $user = new User($name, $password);
115 115
         $user->setGrant($permission, $database);
116 116
         $this->assertEquals(<<<T
117
-GRANT $permission ON $database.* TO '$name'@'%';
118
-T
117
+grant $permission ON $database.* TO '$name'@'%';
118
+t
119 119
 , $user->toSqlPrivileges());
120 120
     }
121 121
 
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
         $user = new User($name, $password);
135 135
         $user->setGrant($permission, $database, $table);
136 136
         $this->assertEquals(<<<T
137
-GRANT $permission ON $database.$table TO '$name'@'%';
138
-T
137
+grant $permission ON $database.$table TO '$name'@'%';
138
+t
139 139
 , $user->toSqlPrivileges());
140 140
     }
141 141
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $this->assertEquals(<<<T
156 156
 GRANT CREATE ON $database.$table TO '$name'@'%';
157 157
 GRANT UPDATE ON $database.$table TO '$name'@'%';
158
-T
158
+t
159 159
 , $user->toSqlPrivileges());
160 160
     }
161 161
 
Please login to merge, or discard this patch.
tests/Unit/Factories/User/SQLSrvUserFactoryTest.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 GO
40 40
 CREATE USER $name FOR LOGIN $name;
41 41
 GO
42
-T
42
+t
43 43
 , $user->toSqlCreate());
44 44
     }
45 45
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->assertEquals(<<<T
54 54
 DROP USER $name;
55 55
 GO
56
-T
56
+t
57 57
 , $user->toSqlDrop());
58 58
     }
59 59
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
         $user->setPlatform('SQLSrv');
71 71
         $user->setGrant($permission);
72 72
         $this->assertEquals(<<<T
73
-GRANT $mappingPermission TO $name;
73
+grant $mappingPermission TO $name;
74 74
 GO
75
-T
75
+t
76 76
 , $user->toSqlPrivileges());
77 77
     }
78 78
 
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
         $user->setPlatform('SQLSrv');
91 91
         $user->setGrant($permission, $database);
92 92
         $this->assertEquals(<<<T
93
-GRANT $mappingPermission ON $database TO $name;
93
+grant $mappingPermission ON $database TO $name;
94 94
 GO
95
-T
95
+t
96 96
 , $user->toSqlPrivileges());
97 97
     }
98 98
 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         $user->setPlatform('SQLSrv');
112 112
         $user->setGrant($permission, $database, $table);
113 113
         $this->assertEquals(<<<T
114
-GRANT $mappingPermission ON $database.$table TO $name;
114
+grant $mappingPermission ON $database.$table TO $name;
115 115
 GO
116
-T
116
+t
117 117
 , $user->toSqlPrivileges());
118 118
     }
119 119
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 GO
137 137
 GRANT UPDATE ON $database.$table TO $name;
138 138
 GO
139
-T
139
+t
140 140
 , $user->toSqlPrivileges());
141 141
     }
142 142
 
Please login to merge, or discard this patch.
tests/Unit/UserTest.php 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $user->setPlatform('MySQL');
23 23
         $this->assertEquals(<<<T
24 24
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
25
-T
25
+t
26 26
 , $user->toSqlCreate());
27 27
     }
28 28
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $user->setPlatform('MySQL');
36 36
         $this->assertEquals(<<<T
37 37
 DROP USER '$name'@'%';
38
-T
38
+t
39 39
 , $user->toSqlDrop());
40 40
     }
41 41
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $user->setGrants(['CREATE'], $database, $table);
52 52
         $this->assertEquals(<<<T
53 53
 GRANT CREATE ON $database.$table TO '$name'@'%';
54
-T
54
+t
55 55
 , $user->toSqlPrivileges());
56 56
     }
57 57
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 GO
68 68
 CREATE USER $name FOR LOGIN $name;
69 69
 GO
70
-T
70
+t
71 71
 , $user->toSqlCreate());
72 72
     }
73 73
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this->assertEquals(<<<T
82 82
 DROP USER $name;
83 83
 GO
84
-T
84
+t
85 85
 , $user->toSqlDrop());
86 86
     }
87 87
 
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
         $user->setPlatform('SQLSrv');
98 98
         $user->setGrants(['CREATE'], $database, $table);
99 99
         $this->assertEquals(<<<T
100
-GRANT $permission ON $database.$table TO $name;
100
+grant $permission ON $database.$table TO $name;
101 101
 GO
102
-T
102
+t
103 103
 , $user->toSqlPrivileges());
104 104
     }
105 105
 }
Please login to merge, or discard this patch.
src/Factories/User/SQLSrvUserFactory.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 GO
30 30
 CREATE USER %1\$s FOR LOGIN %1\$s;
31 31
 GO
32
-T
32
+t
33 33
 , $this->name, $this->password);
34 34
     }
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         return \sprintf(<<<T
39 39
 DROP USER %s;
40 40
 GO
41
-T
41
+t
42 42
 , $this->name);
43 43
     }
44 44
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         return \sprintf(<<<T
108 108
 GRANT %s TO %s;
109 109
 GO
110
-T
110
+t
111 111
 , $permission, $this->name);
112 112
     }
113 113
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         return \sprintf(<<<T
117 117
 GRANT %s %s TO %s;
118 118
 GO
119
-T
119
+t
120 120
 , $permission, $scope, $this->name);
121 121
     }
122 122
 }
Please login to merge, or discard this patch.
tests/Unit/BuilderTest.php 1 patch
Upper-Lower-Casing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $builder->createDatabase($name);
44 44
         $this->assertEquals(<<<T
45 45
 CREATE DATABASE $name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
46
-T
46
+t
47 47
 , $builder->toSql());
48 48
     }
49 49
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $builder->createDatabase($name);
56 56
         $this->assertEquals(<<<T
57 57
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
58
-T
58
+t
59 59
 , $builder->toSql());
60 60
     }
61 61
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $builder = new Builder('SQLite');
67 67
         $builder->createDatabase($name);
68 68
         $this->assertEquals(<<<T
69
-T
69
+t
70 70
 , $builder->toSql());
71 71
     }
72 72
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 CREATE DATABASE $name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
81 81
 
82 82
 USE $name;
83
-T
83
+t
84 84
 , $builder->toSql());
85 85
     }
86 86
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $builder->createDatabaseWithUse($name);
93 93
         $this->assertEquals(<<<T
94 94
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
95
-T
95
+t
96 96
 , $builder->toSql());
97 97
     }
98 98
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $builder = new Builder('SQLite');
104 104
         $builder->createDatabaseWithUse($name);
105 105
         $this->assertEquals(<<<T
106
-T
106
+t
107 107
 , $builder->toSql());
108 108
     }
109 109
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $builder->createUser($name, $password);
117 117
         $this->assertEquals(<<<T
118 118
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
119
-T
119
+t
120 120
 , $builder->toSql());
121 121
     }
122 122
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 GO
133 133
 CREATE USER $name FOR LOGIN $name;
134 134
 GO
135
-T
135
+t
136 136
 , $builder->toSql());
137 137
     }
138 138
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $builder = new Builder('SQLite');
145 145
         $builder->createUser($name, $password);
146 146
         $this->assertEquals(<<<T
147
-T
147
+t
148 148
 , $builder->toSql());
149 149
     }
150 150
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 CREATE USER '$name'@'host' IDENTIFIED BY '$password';
160 160
 
161 161
 GRANT ALL PRIVILEGES ON *.* TO '$name'@'host';
162
-T
162
+t
163 163
 , $builder->toSql());
164 164
     }
165 165
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
 GRANT ALL TO $name;
180 180
 GO
181
-T
181
+t
182 182
 , $builder->toSql());
183 183
     }
184 184
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $builder = new Builder('SQLite');
191 191
         $builder->createUser($name, $password, 'host', ['ALL PRIVILEGES']);
192 192
         $this->assertEquals(<<<T
193
-T
193
+t
194 194
 , $builder->toSql());
195 195
     }
196 196
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 CREATE TABLE bar (
203 203
     foo INT DEFAULT NULL COMMENT 'foo'
204 204
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
205
-T
205
+t
206 206
 , $builder->toSql());
207 207
     }
208 208
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 );
217 217
 
218 218
 EXEC sp_addextendedproperty N'MS_Description', N'foo', N'SCHEMA', 'dbo', N'TABLE', 'bar', N'COLUMN', foo;
219
-T
219
+t
220 220
 , $builder->toSql());
221 221
     }
222 222
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 CREATE TABLE bar (
229 229
     foo INTEGER DEFAULT NULL
230 230
 );
231
-T
231
+t
232 232
 , $builder->toSql());
233 233
     }
234 234
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
280 280
 
281 281
 ALTER TABLE fuz ADD CONSTRAINT FK_51837B119A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
282
-T
282
+t
283 283
 , $builder->toSql());
284 284
     }
285 285
 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 ALTER TABLE baz ADD CONSTRAINT FK_78240498BEB399D5 FOREIGN KEY (fuzId) REFERENCES fuz (id);
347 347
 
348 348
 ALTER TABLE baz ADD CONSTRAINT FK_782404989A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
349
-T
349
+t
350 350
 , $builder->toSql());
351 351
     }
352 352
 
Please login to merge, or discard this patch.
tests/Unit/Factories/User/SQLiteUserFactoryTest.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $user = new User($name, $password);
36 36
         $user->setPlatform('SQLite');
37 37
         $this->assertEquals(<<<T
38
-T
38
+t
39 39
 , $user->toSqlCreate());
40 40
     }
41 41
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $user = new User($name, $password, $host);
49 49
         $user->setPlatform('SQLite');
50 50
         $this->assertEquals(<<<T
51
-T
51
+t
52 52
 , $user->toSqlCreate());
53 53
     }
54 54
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $user = new User($name, $password, $host);
66 66
         $user->setPlatform('SQLite');
67 67
         $this->assertEquals(<<<T
68
-T
68
+t
69 69
 , $user->toSqlDrop());
70 70
     }
71 71
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $user = new User($name, $password, $host);
79 79
         $user->setPlatform('SQLite');
80 80
         $this->assertEquals(<<<T
81
-T
81
+t
82 82
 , $user->toSqlDrop());
83 83
     }
84 84
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $user->setPlatform('SQLite');
97 97
         $user->setGrant($permission);
98 98
         $this->assertEquals(<<<T
99
-T
99
+t
100 100
 , $user->toSqlPrivileges());
101 101
     }
102 102
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $user->setPlatform('SQLite');
116 116
         $user->setGrant($permission, $database);
117 117
         $this->assertEquals(<<<T
118
-T
118
+t
119 119
 , $user->toSqlPrivileges());
120 120
     }
121 121
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $user->setPlatform('SQLite');
136 136
         $user->setGrant($permission, $database, $table);
137 137
         $this->assertEquals(<<<T
138
-T
138
+t
139 139
 , $user->toSqlPrivileges());
140 140
     }
141 141
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $user->setPlatform('SQLite');
155 155
         $user->setGrants($permissions, $database, $table);
156 156
         $this->assertEquals(<<<T
157
-T
157
+t
158 158
 , $user->toSqlPrivileges());
159 159
     }
160 160
 
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $this->createDatabase($name);
113 113
 
114 114
         if ($this->isMySQLPlatform()) {
115
-            $this->databases[] = "USE {$name};";
115
+            $this->databases[] = "use {$name};";
116 116
         }
117 117
     }
118 118
 
Please login to merge, or discard this patch.