@@ -246,6 +246,9 @@ discard block |
||
246 | 246 | $I->assertFileNotExists($updatedPath); |
247 | 247 | } |
248 | 248 | |
249 | + /** |
|
250 | + * @param string $fileName |
|
251 | + */ |
|
249 | 252 | private function publishPlugin($fileName) |
250 | 253 | { |
251 | 254 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
@@ -291,11 +294,18 @@ discard block |
||
291 | 294 | $this->config = Fixtures::get('config'); |
292 | 295 | } |
293 | 296 | |
297 | + /** |
|
298 | + * @param string $tableName |
|
299 | + */ |
|
294 | 300 | protected function tableExists($tableName) |
295 | 301 | { |
296 | 302 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
297 | 303 | } |
298 | 304 | |
305 | + /** |
|
306 | + * @param string $tableName |
|
307 | + * @param string $columnName |
|
308 | + */ |
|
299 | 309 | protected function columnExists($tableName, $columnName) |
300 | 310 | { |
301 | 311 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |
@@ -435,6 +445,9 @@ discard block |
||
435 | 445 | return $this; |
436 | 446 | } |
437 | 447 | |
448 | + /** |
|
449 | + * @param string $fileName |
|
450 | + */ |
|
438 | 451 | private function publishPlugin($fileName) |
439 | 452 | { |
440 | 453 | $published = copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |