Completed
Push — develop ( 2b90f4...561897 )
by Freddie
08:25
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/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.
tests/Unit/BuilderTest.php 1 patch
Upper-Lower-Casing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $this->assertEquals(<<<T
45 45
 CREATE DATABASE $name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
46 46
 
47
-T
47
+t
48 48
 , $builder->toSql());
49 49
     }
50 50
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->assertEquals(<<<T
58 58
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
59 59
 
60
-T
60
+t
61 61
 , $builder->toSql());
62 62
     }
63 63
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $builder->createDatabase($name);
70 70
         $this->assertEquals(<<<T
71 71
 
72
-T
72
+t
73 73
 , $builder->toSql());
74 74
     }
75 75
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 USE $name;
86 86
 
87
-T
87
+t
88 88
 , $builder->toSql());
89 89
     }
90 90
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $this->assertEquals(<<<T
98 98
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
99 99
 
100
-T
100
+t
101 101
 , $builder->toSql());
102 102
     }
103 103
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $builder = new Builder('SQLite');
109 109
         $builder->createDatabaseWithUse($name);
110 110
         $this->assertEquals(<<<T
111
-T
111
+t
112 112
 , $builder->toSql());
113 113
     }
114 114
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $this->assertEquals(<<<T
123 123
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
124 124
 
125
-T
125
+t
126 126
 , $builder->toSql());
127 127
     }
128 128
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 CREATE USER $name FOR LOGIN $name;
140 140
 GO
141 141
 
142
-T
142
+t
143 143
 , $builder->toSql());
144 144
     }
145 145
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $builder = new Builder('SQLite');
152 152
         $builder->createUser($name, $password);
153 153
         $this->assertEquals(<<<T
154
-T
154
+t
155 155
 , $builder->toSql());
156 156
     }
157 157
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
 GRANT ALL PRIVILEGES ON *.* TO '$name'@'host';
169 169
 
170
-T
170
+t
171 171
 , $builder->toSql());
172 172
     }
173 173
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 GRANT ALL TO $name;
188 188
 GO
189 189
 
190
-T
190
+t
191 191
 , $builder->toSql());
192 192
     }
193 193
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $builder = new Builder('SQLite');
200 200
         $builder->createUser($name, $password, 'host', ['ALL PRIVILEGES']);
201 201
         $this->assertEquals(<<<T
202
-T
202
+t
203 203
 , $builder->toSql());
204 204
     }
205 205
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     foo INT DEFAULT NULL COMMENT 'foo'
213 213
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB;
214 214
 
215
-T
215
+t
216 216
 , $builder->toSql());
217 217
     }
218 218
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
 EXEC sp_addextendedproperty N'MS_Description', N'foo', N'SCHEMA', 'dbo', N'TABLE', 'bar', N'COLUMN', foo;
229 229
 
230
-T
230
+t
231 231
 , $builder->toSql());
232 232
     }
233 233
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     foo INTEGER DEFAULT NULL
241 241
 );
242 242
 
243
-T
243
+t
244 244
 , $builder->toSql());
245 245
     }
246 246
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
 ALTER TABLE fuz ADD CONSTRAINT FK_51837B119A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
294 294
 
295
-T
295
+t
296 296
 , $builder->toSql());
297 297
     }
298 298
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 
363 363
 ALTER TABLE baz ADD CONSTRAINT FK_782404989A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
364 364
 
365
-T
365
+t
366 366
 , $builder->toSql());
367 367
     }
368 368
 
Please login to merge, or discard this patch.