summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/jobs
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-01-06 17:50:06 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-01-06 17:50:06 +0100
commite724b78694cb17c7a3ff4427ae103b01baa4688c (patch)
tree21ad2d4a24d1e4e3a8da5e5d0ee6f1dd8ff40cf1 /apps/user_ldap/tests/jobs
parent61ed363f820a3b25b68289ed2c03ff5e5edfed91 (diff)
downloadnextcloud-server-e724b78694cb17c7a3ff4427ae103b01baa4688c.tar.gz
nextcloud-server-e724b78694cb17c7a3ff4427ae103b01baa4688c.zip
smaller fixes: coding style, PHPdoc, typos and few for DI
Diffstat (limited to 'apps/user_ldap/tests/jobs')
-rw-r--r--apps/user_ldap/tests/jobs/cleanup.php24
1 files changed, 0 insertions, 24 deletions
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
@@ -106,30 +106,6 @@ class Test_CleanUp extends \PHPUnit_Framework_TestCase {
}
/**
- * 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
*/
public function test_OffsetResetIsNecessary() {