mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +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\Environment;
|
||||
|
||||
@@ -58,7 +51,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], array_values($data));
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,7 +83,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -115,7 +108,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, ['--driver' => 'mail'], array_values($data));
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -136,7 +129,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], array_values($data));
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -164,7 +157,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -184,7 +177,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
$display = $this->runCommand($this->command, [], array_values($data));
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -210,7 +203,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -235,7 +228,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -264,7 +257,7 @@ class EmailSettingsCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains('Updating stored environment configuration file.', $display);
|
||||
$this->assertStringContainsString('Updating stored environment configuration file.', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user