@@ -236,6 +236,9 @@ discard block |
||
236 | 236 | $I->assertFileNotExists($updatedPath); |
237 | 237 | } |
238 | 238 | |
239 | + /** |
|
240 | + * @param string $fileName |
|
241 | + */ |
|
239 | 242 | private function publishPlugin($fileName) |
240 | 243 | { |
241 | 244 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
@@ -277,11 +280,18 @@ discard block |
||
277 | 280 | $this->config = Fixtures::get('config'); |
278 | 281 | } |
279 | 282 | |
283 | + /** |
|
284 | + * @param string $tableName |
|
285 | + */ |
|
280 | 286 | protected function tableExists($tableName) |
281 | 287 | { |
282 | 288 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
283 | 289 | } |
284 | 290 | |
291 | + /** |
|
292 | + * @param string $tableName |
|
293 | + * @param string $columnName |
|
294 | + */ |
|
285 | 295 | protected function columnExists($tableName, $columnName) |
286 | 296 | { |
287 | 297 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |
@@ -395,6 +405,9 @@ discard block |
||
395 | 405 | return $this; |
396 | 406 | } |
397 | 407 | |
408 | + /** |
|
409 | + * @param string $fileName |
|
410 | + */ |
|
398 | 411 | private function publishPlugin($fileName) |
399 | 412 | { |
400 | 413 | $this->I->wantTo("プラグイン「${fileName}」公開"); |