Fix immediately obvious deprecation notices while running command tests

This commit is contained in:
Dane Everitt 2020-06-23 21:33:56 -07:00
parent 86bc9da893
commit eaae74fe33
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 63 additions and 85 deletions

View file

@ -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);
}
/**