@@ -276,16 +276,26 @@ |
||
| 276 | 276 | $I->assertFileNotExists($updatedPath); |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | + /** |
|
| 280 | + * @param string $fileName |
|
| 281 | + */ |
|
| 279 | 282 | private function publishPlugin($fileName) |
| 280 | 283 | { |
| 281 | 284 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
| 282 | 285 | } |
| 283 | 286 | |
| 287 | + /** |
|
| 288 | + * @param string $tableName |
|
| 289 | + */ |
|
| 284 | 290 | private function tableExists($tableName) |
| 285 | 291 | { |
| 286 | 292 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
| 287 | 293 | } |
| 288 | 294 | |
| 295 | + /** |
|
| 296 | + * @param string $tableName |
|
| 297 | + * @param string $columnName |
|
| 298 | + */ |
|
| 289 | 299 | private function columnExists($tableName, $columnName) |
| 290 | 300 | { |
| 291 | 301 | $res = $this->conn->executeQuery("SELECT * FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch(); |