@@ -21,7 +21,7 @@ public function it_runs_migrations()
2121 $ this ->seeTableDoesntExist ('posts ' );
2222
2323 Yarak::call ([
24- 'command ' => 'migrate '
24+ 'command ' => 'migrate ' ,
2525 ], $ this ->getConfig ()->getAll ());
2626
2727 $ this ->seeTableExists ('users ' );
@@ -30,12 +30,12 @@ public function it_runs_migrations()
3030
3131 $ this ->seeInDatabase ('migrations ' , [
3232 'migration ' => '2017_01_01_000001_create_users_table ' ,
33- 'batch ' => 1
33+ 'batch ' => 1 ,
3434 ]);
3535
3636 $ this ->seeInDatabase ('migrations ' , [
3737 'migration ' => '2017_01_01_000002_create_posts_table ' ,
38- 'batch ' => 1
38+ 'batch ' => 1 ,
3939 ]);
4040 }
4141
@@ -53,20 +53,20 @@ public function it_rollsback_single_step()
5353 $ this ->seeTableExists ('posts ' );
5454
5555 Yarak::call ([
56- 'command ' => 'migrate ' ,
57- '--rollback ' => true
56+ 'command ' => 'migrate ' ,
57+ '--rollback ' => true ,
5858 ], $ this ->getConfig ()->getAll ());
5959
6060 $ this ->seeTableDoesntExist ('users ' );
6161
6262 $ this ->seeTableDoesntExist ('posts ' );
6363
6464 $ this ->dontSeeInDatabase ('migrations ' , [
65- 'migration ' => '2017_01_01_000001_create_users_table '
65+ 'migration ' => '2017_01_01_000001_create_users_table ' ,
6666 ]);
6767
6868 $ this ->dontSeeInDatabase ('migrations ' , [
69- 'migration ' => '2017_01_01_000002_create_posts_table '
69+ 'migration ' => '2017_01_01_000002_create_posts_table ' ,
7070 ]);
7171 }
7272
@@ -84,20 +84,20 @@ public function it_rollsback_mutliple_steps()
8484 $ this ->seeTableExists ('posts ' );
8585
8686 Yarak::call ([
87- 'command ' => 'migrate ' ,
88- '--rollback ' => 2
87+ 'command ' => 'migrate ' ,
88+ '--rollback ' => 2 ,
8989 ], $ this ->getConfig ()->getAll ());
9090
9191 $ this ->seeTableDoesntExist ('users ' );
9292
9393 $ this ->seeTableDoesntExist ('posts ' );
9494
9595 $ this ->dontSeeInDatabase ('migrations ' , [
96- 'migration ' => '2017_01_01_000001_create_users_table '
96+ 'migration ' => '2017_01_01_000001_create_users_table ' ,
9797 ]);
9898
9999 $ this ->dontSeeInDatabase ('migrations ' , [
100- 'migration ' => '2017_01_01_000002_create_posts_table '
100+ 'migration ' => '2017_01_01_000002_create_posts_table ' ,
101101 ]);
102102 }
103103
@@ -116,19 +116,19 @@ public function it_resets_the_database()
116116
117117 Yarak::call ([
118118 'command ' => 'migrate ' ,
119- '--reset ' => true
119+ '--reset ' => true ,
120120 ], $ this ->getConfig ()->getAll ());
121121
122122 $ this ->seeTableDoesntExist ('users ' );
123123
124124 $ this ->seeTableDoesntExist ('posts ' );
125125
126126 $ this ->dontSeeInDatabase ('migrations ' , [
127- 'migration ' => '2017_01_01_000001_create_users_table '
127+ 'migration ' => '2017_01_01_000001_create_users_table ' ,
128128 ]);
129129
130130 $ this ->dontSeeInDatabase ('migrations ' , [
131- 'migration ' => '2017_01_01_000002_create_posts_table '
131+ 'migration ' => '2017_01_01_000002_create_posts_table ' ,
132132 ]);
133133 }
134134
@@ -147,17 +147,17 @@ public function it_refreshes_the_database()
147147
148148 $ this ->seeInDatabase ('migrations ' , [
149149 'migration ' => '2017_01_01_000001_create_users_table ' ,
150- 'batch ' => 1
150+ 'batch ' => 1 ,
151151 ]);
152152
153153 $ this ->seeInDatabase ('migrations ' , [
154154 'migration ' => '2017_01_01_000002_create_posts_table ' ,
155- 'batch ' => 2
155+ 'batch ' => 2 ,
156156 ]);
157157
158158 Yarak::call ([
159- 'command ' => 'migrate ' ,
160- '--refresh ' => true
159+ 'command ' => 'migrate ' ,
160+ '--refresh ' => true ,
161161 ], $ this ->getConfig ()->getAll ());
162162
163163 $ this ->seeTableExists ('users ' );
@@ -166,12 +166,12 @@ public function it_refreshes_the_database()
166166
167167 $ this ->seeInDatabase ('migrations ' , [
168168 'migration ' => '2017_01_01_000001_create_users_table ' ,
169- 'batch ' => 1
169+ 'batch ' => 1 ,
170170 ]);
171171
172172 $ this ->seeInDatabase ('migrations ' , [
173173 'migration ' => '2017_01_01_000002_create_posts_table ' ,
174- 'batch ' => 1
174+ 'batch ' => 1 ,
175175 ]);
176176 }
177177}
0 commit comments