Completed
Push — develop ( 4c851b...fa6865 )
by Freddie
03:54
created
tests/Unit/BuilderTest.php 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $builder->createDatabase($name);
35 35
         $this->assertEquals(<<<T
36 36
 CREATE DATABASE $name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
37
-T
37
+t
38 38
 , $builder->toSql());
39 39
     }
40 40
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $builder->createDatabase($name);
47 47
         $this->assertEquals(<<<T
48 48
 CREATE DATABASE $name COLLATE latin1_general_100_ci_ai_sc;
49
-T
49
+t
50 50
 , $builder->toSql());
51 51
     }
52 52
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $builder->createUser($name, $password);
60 60
         $this->assertEquals(<<<T
61 61
 CREATE USER '$name'@'%' IDENTIFIED BY '$password';
62
-T
62
+t
63 63
 , $builder->toSql());
64 64
     }
65 65
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 GO
76 76
 CREATE USER $name FOR LOGIN $name;
77 77
 GO
78
-T
78
+t
79 79
 , $builder->toSql());
80 80
     }
81 81
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 CREATE TABLE bar (
88 88
     foo VARCHAR(255) DEFAULT NULL COMMENT 'foo'
89 89
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
90
-T
90
+t
91 91
 , $builder->toSql());
92 92
     }
93 93
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 CREATE TABLE bar (
100 100
     foo NVARCHAR(255)
101 101
 );
102
-T
102
+t
103 103
 , $builder->toSql());
104 104
     }
105 105
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     foo VARCHAR(100) DEFAULT NULL COMMENT 'foo',
139 139
     bar INT DEFAULT NULL COMMENT 'bar'
140 140
 ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;
141
-T
141
+t
142 142
 , $builder->toSql());
143 143
     }
144 144
 
Please login to merge, or discard this patch.
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.