mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-06 10:44:33 +08:00
Removed php8-only 'mixed' type from test method
This commit is contained in:
@ -81,8 +81,9 @@ class ConfigTest extends TestCase
|
|||||||
* Set an environment variable of the given name and value
|
* Set an environment variable of the given name and value
|
||||||
* then check the given config key to see if it matches the given result.
|
* then check the given config key to see if it matches the given result.
|
||||||
* Providing a null $envVal clears the variable.
|
* Providing a null $envVal clears the variable.
|
||||||
|
* @param mixed $expectedResult
|
||||||
*/
|
*/
|
||||||
protected function checkEnvConfigResult(string $envName, ?string $envVal, string $configKey, mixed $expectedResult)
|
protected function checkEnvConfigResult(string $envName, ?string $envVal, string $configKey, $expectedResult)
|
||||||
{
|
{
|
||||||
$this->runWithEnv($envName, $envVal, function() use ($configKey, $expectedResult) {
|
$this->runWithEnv($envName, $envVal, function() use ($configKey, $expectedResult) {
|
||||||
$this->assertEquals($expectedResult, config($configKey));
|
$this->assertEquals($expectedResult, config($configKey));
|
||||||
|
Reference in New Issue
Block a user