Test Setup Failed
Pull Request — master (#366)
by
unknown
65:47
created
tests/TestsBase.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,11 +41,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
@@ -144,6 +153,9 @@  discard block
 block discarded – undo
144 153
         });
145 154
     }
146 155
 
156
+    /**
157
+     * @param string $query
158
+     */
147 159
     private function beautifyQuery($query)
148 160
     {
149 161
         $capitalizeWords = ['select ', ' from ', ' where ', ' on ', ' join '];
Please login to merge, or discard this patch.