Completed
Push — develop ( 8bd504...58ca2f )
by Freddie
09:29
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   +12 added lines, -12 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
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 CREATE DATABASE $name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
70 70
 
71 71
 USE $name;
72
-T
72
+t
73 73
 , $builder->toSql());
74 74
     }
75 75
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $builder->createDatabaseWithUse($name);
82 82
         $this->assertEquals(<<<T
83 83
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
84
-T
84
+t
85 85
 , $builder->toSql());
86 86
     }
87 87
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $builder->createUser($name, $password);
95 95
         $this->assertEquals(<<<T
96 96
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
97
-T
97
+t
98 98
 , $builder->toSql());
99 99
     }
100 100
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 GO
111 111
 CREATE USER $name FOR LOGIN $name;
112 112
 GO
113
-T
113
+t
114 114
 , $builder->toSql());
115 115
     }
116 116
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 CREATE USER '$name'@'host' IDENTIFIED BY '$password';
126 126
 
127 127
 GRANT ALL PRIVILEGES ON *.* TO '$name'@'host';
128
-T
128
+t
129 129
 , $builder->toSql());
130 130
     }
131 131
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
 GRANT ALL TO sqlsrv;
146 146
 GO
147
-T
147
+t
148 148
 , $builder->toSql());
149 149
     }
150 150
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 CREATE TABLE bar (
157 157
     foo INT DEFAULT NULL COMMENT 'foo'
158 158
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
159
-T
159
+t
160 160
 , $builder->toSql());
161 161
     }
162 162
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 );
171 171
 
172 172
 EXEC sp_addextendedproperty N'MS_Description', N'foo', N'SCHEMA', 'dbo', N'TABLE', 'bar', N'COLUMN', foo;
173
-T
173
+t
174 174
 , $builder->toSql());
175 175
     }
176 176
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
222 222
 
223 223
 ALTER TABLE fuz ADD CONSTRAINT FK_51837B119A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
224
-T
224
+t
225 225
 , $builder->toSql());
226 226
     }
227 227
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 ALTER TABLE baz ADD CONSTRAINT FK_78240498BEB399D5 FOREIGN KEY (fuzId) REFERENCES fuz (id);
289 289
 
290 290
 ALTER TABLE baz ADD CONSTRAINT FK_782404989A5BAE65 FOREIGN KEY (barId) REFERENCES bar (id);
291
-T
291
+t
292 292
 , $builder->toSql());
293 293
     }
294 294
 
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
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $this->createDatabase($name);
106 106
 
107 107
         if ($this->platform === 'MySQL') {
108
-            $this->databases[] = "USE {$name};";
108
+            $this->databases[] = "use {$name};";
109 109
         }
110 110
     }
111 111
 
Please login to merge, or discard this patch.