diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Models/SearchTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index 990598dff..fad5d4768 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -251,7 +251,7 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { $previousUserConf = FreshRSS_Context::hasUserConf() ? FreshRSS_Context::userConf() : null; $newUserConf = $previousUserConf instanceof FreshRSS_UserConfiguration ? clone $previousUserConf : clone FreshRSS_UserConfiguration::default(); $newUserConf->queries = $queries; - FreshRSS_Context::$user_conf = $newUserConf; + FreshRSS_Context::setUserConf($newUserConf); try { $search = new FreshRSS_BooleanSearch($input); @@ -259,7 +259,7 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { self::assertSame($expectedResult[0], trim($actualSql)); self::assertSame($expectedResult[1], $actualValues); } finally { - FreshRSS_Context::$user_conf = $previousUserConf; + FreshRSS_Context::setUserConf($previousUserConf); } } |
