From e724b78694cb17c7a3ff4427ae103b01baa4688c Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 6 Jan 2015 17:50:06 +0100 Subject: smaller fixes: coding style, PHPdoc, typos and few for DI --- apps/user_ldap/tests/jobs/cleanup.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'apps/user_ldap/tests/jobs') diff --git a/apps/user_ldap/tests/jobs/cleanup.php b/apps/user_ldap/tests/jobs/cleanup.php index 642bad57134..78bda66c54f 100644 --- a/apps/user_ldap/tests/jobs/cleanup.php +++ b/apps/user_ldap/tests/jobs/cleanup.php @@ -105,30 +105,6 @@ class Test_CleanUp extends \PHPUnit_Framework_TestCase { $this->assertSame(true, $result); } - /** - * test whether sql is OK - */ - public function test_getMappedUsers() { - $args = $this->getMocks(); - - $bgJob = new \OCA\User_LDAP\Jobs\CleanUp(); - $bgJob->setArguments($args); - - if(version_compare(\PHPUnit_Runner_Version::id(), '3.8', '<')) { - //otherwise we run into - //https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103 - $this->markTestIncomplete(); - } - - $stmt = $this->getMock('\Doctrine\DBAL\Driver\Statement'); - - $args['db']->expects($this->once()) - ->method('prepare') - ->will($this->returnValue($stmt)); - - $bgJob->getMappedUsers(0, $bgJob->getChunkSize()); - } - /** * check whether offset will be reset when it needs to */ -- cgit v1.2.3