summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-02 11:02:12 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-06 09:29:27 +0200
commit5fb2eee5df6bfbe3d608709fbe6997860fe4d648 (patch)
treec94f53f8128e92268ff10755066f3d0d2ef76b38 /apps/user_ldap/tests/Mapping/AbstractMappingTest.php
parent798dd401391bc9d88292b50f9a17f01546f70624 (diff)
downloadnextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.tar.gz
nextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.zip
Fix getMock user_ldap
Diffstat (limited to 'apps/user_ldap/tests/Mapping/AbstractMappingTest.php')
-rw-r--r--apps/user_ldap/tests/Mapping/AbstractMappingTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
index 1d988126df0..91013085c2c 100644
--- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
+++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
@@ -26,6 +26,8 @@
namespace OCA\User_LDAP\Tests\Mapping;
+use OCP\IDBConnection;
+
abstract class AbstractMappingTest extends \Test\TestCase {
abstract public function getMapper(\OCP\IDBConnection $dbMock);
@@ -33,7 +35,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* kiss test on isColNameValid
*/
public function testIsColNameValid() {
- $dbMock = $this->getMock('\OCP\IDBConnection');
+ $dbMock = $this->createMock(IDBConnection::class);
$mapper = $this->getMapper($dbMock);
$this->assertTrue($mapper->isColNameValid('ldap_dn'));