mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
Fix immediately obvious deprecation notices while running command tests
This commit is contained in:
@@ -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 New Issue
Block a user