execute(array('db01', 'oc1', '000-0000-0000')); $statement->execute(array('db02', 'oc2', '000-0000-0001')); $statement = \OCP\DB::prepare('SELECT count(*) FROM `*PREFIX*ldap_user_mapping`'); $result = $statement->execute(); $this->assertEquals(2, $result->fetchOne()); Helper::clearMapping('user'); $result = $statement->execute(); $this->assertEquals(0, $result->fetchOne()); } }