@@ -42,6 +42,10 @@ protected function setUp(): void
42
42
$ config = config ('Database ' );
43
43
44
44
$ this ->tests = $ config ->tests ;
45
+
46
+ if ($ this ->tests ['DBDriver ' ] !== 'MySQLi ' ) {
47
+ $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
48
+ }
45
49
}
46
50
47
51
public function testEnableFoundRows (): void
@@ -50,10 +54,6 @@ public function testEnableFoundRows(): void
50
54
51
55
$ db1 = Database::connect ($ this ->tests );
52
56
53
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
54
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
55
- }
56
-
57
57
$ this ->assertTrue ($ db1 ->foundRows );
58
58
}
59
59
@@ -63,10 +63,6 @@ public function testDisableFoundRows(): void
63
63
64
64
$ db1 = Database::connect ($ this ->tests );
65
65
66
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
67
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
68
- }
69
-
70
66
$ this ->assertFalse ($ db1 ->foundRows );
71
67
}
72
68
@@ -76,10 +72,6 @@ public function testAffectedRowsAfterEnableFoundRowsWithNoChange(): void
76
72
77
73
$ db1 = Database::connect ($ this ->tests );
78
74
79
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
80
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
81
- }
82
-
83
75
$ db1 ->table ('db_user ' )
84
76
->set ('country ' , 'US ' )
85
77
->where ('country ' , 'US ' )
@@ -96,10 +88,6 @@ public function testAffectedRowsAfterDisableFoundRowsWithNoChange(): void
96
88
97
89
$ db1 = Database::connect ($ this ->tests );
98
90
99
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
100
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
101
- }
102
-
103
91
$ db1 ->table ('db_user ' )
104
92
->set ('country ' , 'US ' )
105
93
->where ('country ' , 'US ' )
@@ -116,10 +104,6 @@ public function testAffectedRowsAfterEnableFoundRowsWithChange(): void
116
104
117
105
$ db1 = Database::connect ($ this ->tests );
118
106
119
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
120
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
121
- }
122
-
123
107
$ db1 ->table ('db_user ' )
124
108
->set ('country ' , 'NZ ' )
125
109
->where ('country ' , 'US ' )
@@ -136,10 +120,6 @@ public function testAffectedRowsAfterDisableFoundRowsWithChange(): void
136
120
137
121
$ db1 = Database::connect ($ this ->tests );
138
122
139
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
140
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
141
- }
142
-
143
123
$ db1 ->table ('db_user ' )
144
124
->set ('country ' , 'NZ ' )
145
125
->where ('country ' , 'US ' )
@@ -156,10 +136,6 @@ public function testAffectedRowsAfterEnableFoundRowsWithPartialChange(): void
156
136
157
137
$ db1 = Database::connect ($ this ->tests );
158
138
159
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
160
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
161
- }
162
-
163
139
$ db1 ->table ('db_user ' )
164
140
->set ('name ' , 'Derek Jones ' )
165
141
->where ('country ' , 'US ' )
@@ -176,10 +152,6 @@ public function testAffectedRowsAfterDisableFoundRowsWithPartialChange(): void
176
152
177
153
$ db1 = Database::connect ($ this ->tests );
178
154
179
- if ($ db1 ->DBDriver !== 'MySQLi ' ) {
180
- $ this ->markTestSkipped ('Only MySQLi can complete this test. ' );
181
- }
182
-
183
155
$ db1 ->table ('db_user ' )
184
156
->set ('name ' , 'Derek Jones ' )
185
157
->where ('country ' , 'US ' )
0 commit comments