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
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Pterodactyl - Panel
|
||||
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
||||
*
|
||||
* This software is licensed under the terms of the MIT license.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
namespace Tests\Unit\Commands\Schedule;
|
||||
|
||||
|
@ -64,7 +57,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
|||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.schedule.output_line', [
|
||||
$this->assertStringContainsString(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
'hash' => $schedule->hashid,
|
||||
]), $display);
|
||||
|
@ -83,7 +76,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
|||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.schedule.output_line', [
|
||||
$this->assertStringNotContainsString(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
'hash' => $schedule->hashid,
|
||||
]), $display);
|
||||
|
@ -101,7 +94,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
|||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.schedule.output_line', [
|
||||
$this->assertStringNotContainsString(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
'hash' => $schedule->hashid,
|
||||
]), $display);
|
||||
|
|
Reference in a new issue