diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-20 12:27:32 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-20 12:30:21 +0200 |
commit | a0ada9aab40c83b242cfbda1ab6078938c14bea7 (patch) | |
tree | e4c60a2c25188cd3862f048b227a12797ea9043b /tests/lib/AllConfigTest.php | |
parent | 24789ba0f4b6961adce71fca1dc58b847d1e5e22 (diff) | |
download | nextcloud-server-a0ada9aab40c83b242cfbda1ab6078938c14bea7.tar.gz nextcloud-server-a0ada9aab40c83b242cfbda1ab6078938c14bea7.zip |
Don't use deprecated getMock() anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/AllConfigTest.php')
-rw-r--r-- | tests/lib/AllConfigTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/AllConfigTest.php b/tests/lib/AllConfigTest.php index 3d0a9cb0827..f3d43ff4396 100644 --- a/tests/lib/AllConfigTest.php +++ b/tests/lib/AllConfigTest.php @@ -15,6 +15,8 @@ namespace Test; * * @package Test */ +use OCP\IDBConnection; + class AllConfigTest extends \Test\TestCase { /** @var \OCP\IDBConnection */ @@ -189,7 +191,7 @@ class AllConfigTest extends \Test\TestCase { ->method('fetchColumn') ->will($this->returnValue('valueSetUnchanged')); - $connectionMock = $this->getMock('\OCP\IDBConnection'); + $connectionMock = $this->createMock(IDBConnection::class); $connectionMock->expects($this->once()) ->method('executeQuery') ->with($this->equalTo('SELECT `configvalue` FROM `*PREFIX*preferences` '. |