22
33namespace Laravel \Jetstream \Tests ;
44
5- use Illuminate \Support \Facades \Schema ;
65use Laravel \Fortify \Actions \DisableTwoFactorAuthentication ;
76use Laravel \Fortify \Features ;
87use Laravel \Jetstream \Jetstream ;
@@ -20,8 +19,6 @@ public function setUp(): void
2019
2120 public function test_empty_two_factor_state_is_noted ()
2221 {
23- $ this ->migrate ();
24-
2522 $ disable = $ this ->mock (DisableTwoFactorAuthentication::class);
2623 $ disable ->shouldReceive ('__invoke ' )->once ();
2724
@@ -43,8 +40,6 @@ public function test_empty_two_factor_state_is_noted()
4340
4441 public function test_two_factor_is_not_disabled_if_was_previously_empty_and_currently_confirming ()
4542 {
46- $ this ->migrate ();
47-
4843 $ disable = $ this ->mock (DisableTwoFactorAuthentication::class);
4944 $ disable ->shouldReceive ('__invoke ' )->never ();
5045
@@ -67,8 +62,6 @@ public function test_two_factor_is_not_disabled_if_was_previously_empty_and_curr
6762
6863 public function test_two_factor_is_disabled_if_was_previously_confirming_and_page_is_reloaded ()
6964 {
70- $ this ->migrate ();
71-
7265 $ disable = $ this ->mock (DisableTwoFactorAuthentication::class);
7366 $ disable ->shouldReceive ('__invoke ' )->once ();
7467
@@ -92,16 +85,6 @@ public function test_two_factor_is_disabled_if_was_previously_confirming_and_pag
9285 $ response ->assertStatus (200 );
9386 }
9487
95- protected function migrate ()
96- {
97- $ this ->artisan ('migrate ' , ['--database ' => 'testbench ' ])->run ();
98-
99- Schema::table ('users ' , function ($ table ) {
100- $ table ->string ('two_factor_secret ' )->nullable ();
101- $ table ->timestamp ('two_factor_confirmed_at ' )->nullable ();
102- });
103- }
104-
10588 protected function getEnvironmentSetUp ($ app )
10689 {
10790 parent ::getEnvironmentSetUp ($ app );
0 commit comments