@@ -41,11 +41,17 @@ discard block |
||
| 41 | 41 | $seeder->run(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $dbName |
|
| 46 | + */ |
|
| 44 | 47 | private function makeSureDatabaseExists($dbName) |
| 45 | 48 | { |
| 46 | 49 | $this->runQuery('CREATE DATABASE IF NOT EXISTS '.$dbName); |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $dbConnectionName |
|
| 54 | + */ |
|
| 49 | 55 | private function makeSureSchemaIsCreated($dbConnectionName) |
| 50 | 56 | { |
| 51 | 57 | $migrationsPath = '../../../../tests/migrations'; |
@@ -58,6 +64,9 @@ discard block |
||
| 58 | 64 | ]); |
| 59 | 65 | } |
| 60 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $dbName |
|
| 69 | + */ |
|
| 61 | 70 | private function truncateAllTablesButMigrations($dbName) |
| 62 | 71 | { |
| 63 | 72 | $db = $this->app->make('db'); |
@@ -73,7 +82,7 @@ discard block |
||
| 73 | 82 | } |
| 74 | 83 | |
| 75 | 84 | /** |
| 76 | - * @param $query |
|
| 85 | + * @param string $query |
|
| 77 | 86 | * return void |
| 78 | 87 | */ |
| 79 | 88 | private function runQuery($query) |