@@ -196,6 +196,9 @@ discard block |
||
196 | 196 | $I->assertFileNotExists($updatedPath); |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $fileName |
|
201 | + */ |
|
199 | 202 | private function publishPlugin($fileName) |
200 | 203 | { |
201 | 204 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
@@ -237,11 +240,18 @@ discard block |
||
237 | 240 | $this->config = Fixtures::get('config'); |
238 | 241 | } |
239 | 242 | |
243 | + /** |
|
244 | + * @param string $tableName |
|
245 | + */ |
|
240 | 246 | protected function tableExists($tableName) |
241 | 247 | { |
242 | 248 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
243 | 249 | } |
244 | 250 | |
251 | + /** |
|
252 | + * @param string $tableName |
|
253 | + * @param string $columnName |
|
254 | + */ |
|
245 | 255 | protected function columnExists($tableName, $columnName) |
246 | 256 | { |
247 | 257 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |
@@ -344,6 +354,9 @@ discard block |
||
344 | 354 | return $this; |
345 | 355 | } |
346 | 356 | |
357 | + /** |
|
358 | + * @param string $fileName |
|
359 | + */ |
|
347 | 360 | private function publishPlugin($fileName) |
348 | 361 | { |
349 | 362 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |