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\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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue