Fix immediately obvious deprecation notices while running command tests
This commit is contained in:
parent
86bc9da893
commit
eaae74fe33
9 changed files with 63 additions and 85 deletions
|
@ -58,7 +58,7 @@ class DisableTwoFactorCommandTest extends CommandTestCase
|
|||
$display = $this->runCommand($this->command, [], [$user->email]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.user.2fa_disabled', ['email' => $user->email]), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.user.2fa_disabled', ['email' => $user->email]), $display);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,6 +78,6 @@ class DisableTwoFactorCommandTest extends CommandTestCase
|
|||
|
||||
$display = $this->withoutInteraction()->runCommand($this->command, ['--email' => $user->email]);
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.user.2fa_disabled', ['email' => $user->email]), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.user.2fa_disabled', ['email' => $user->email]), $display);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue