diff options
Diffstat (limited to 'tests/lib/AllConfigTest.php')
-rw-r--r-- | tests/lib/AllConfigTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/AllConfigTest.php b/tests/lib/AllConfigTest.php index f3d43ff4396..80ddcbbd354 100644 --- a/tests/lib/AllConfigTest.php +++ b/tests/lib/AllConfigTest.php @@ -137,17 +137,18 @@ class AllConfigTest extends \Test\TestCase { /** * @dataProvider dataSetUserValueUnexpectedValue * @param mixed $value - * @expectedException \UnexpectedValueException */ public function testSetUserValueUnexpectedValue($value) { + $this->expectException(\UnexpectedValueException::class); + $config = $this->getConfig(); $config->setUserValue('userSetBool', 'appSetBool', 'keySetBool', $value); } - /** - * @expectedException \OCP\PreConditionNotMetException - */ + public function testSetUserValueWithPreConditionFailure() { + $this->expectException(\OCP\PreConditionNotMetException::class); + $config = $this->getConfig(); $selectAllSQL = 'SELECT `userid`, `appid`, `configkey`, `configvalue` FROM `*PREFIX*preferences` WHERE `userid` = ?'; |