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