mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix immediately obvious deprecation notices while running command tests
This commit is contained in:
@@ -63,7 +63,7 @@ class DeleteLocationCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], [$location2->short]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.deleted'), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.location.deleted'), $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,7 +84,7 @@ class DeleteLocationCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.deleted'), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.location.deleted'), $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -103,8 +103,8 @@ class DeleteLocationCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], ['123_not_exist', 'another_not_exist', $location2->short]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.no_location_found'), $display);
|
||||
$this->assertContains(trans('command/messages.location.deleted'), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.location.no_location_found'), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.location.deleted'), $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,6 +123,6 @@ class DeleteLocationCommandTest extends CommandTestCase
|
||||
$display = $this->withoutInteraction()->runCommand($this->command, ['--short' => 'randomTestString']);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.no_location_found'), $display);
|
||||
$this->assertStringContainsString(trans('command/messages.location.no_location_found'), $display);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class MakeLocationCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], [$location->short, $location->long]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.created', [
|
||||
$this->assertStringContainsString(trans('command/messages.location.created', [
|
||||
'name' => $location->short,
|
||||
'id' => $location->id,
|
||||
]), $display);
|
||||
@@ -79,7 +79,7 @@ class MakeLocationCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.location.created', [
|
||||
$this->assertStringContainsString(trans('command/messages.location.created', [
|
||||
'name' => $location->short,
|
||||
'id' => $location->id,
|
||||
]), $display);
|
||||
|
||||
Reference in New Issue
Block a user