From d4e828f39e302a7c69de28c5f2d9b77969f50230 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@owncloud.com>
Date: Thu, 12 May 2016 16:08:46 +0200
Subject: [PATCH] Move wizard

---
 apps/user_ldap/ajax/wizard.php                            | 2 +-
 apps/user_ldap/lib/{wizard.php => Wizard.php}             | 7 ++++++-
 apps/user_ldap/lib/{wizardresult.php => WizardResult.php} | 2 +-
 apps/user_ldap/tests/{wizard.php => WizardTest.php}       | 8 ++++----
 4 files changed, 12 insertions(+), 7 deletions(-)
 rename apps/user_ldap/lib/{wizard.php => Wizard.php} (99%)
 rename apps/user_ldap/lib/{wizardresult.php => WizardResult.php} (98%)
 rename apps/user_ldap/tests/{wizard.php => WizardTest.php} (98%)

diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php
index 99e0c37d1cf..a1e2b0e8fb6 100644
--- a/apps/user_ldap/ajax/wizard.php
+++ b/apps/user_ldap/ajax/wizard.php
@@ -60,7 +60,7 @@ $userManager = new \OCA\User_LDAP\User\Manager(
 
 $access = new \OCA\user_ldap\lib\Access($con, $ldapWrapper, $userManager);
 
-$wizard = new \OCA\user_ldap\lib\Wizard($configuration, $ldapWrapper, $access);
+$wizard = new \OCA\User_LDAP\Wizard($configuration, $ldapWrapper, $access);
 
 switch($action) {
 	case 'guessPortAndTLS':
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/Wizard.php
similarity index 99%
rename from apps/user_ldap/lib/wizard.php
rename to apps/user_ldap/lib/Wizard.php
index 0b475ee7143..d9bb0c41727 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/Wizard.php
@@ -29,9 +29,14 @@
  *
  */
 
-namespace OCA\user_ldap\lib;
+namespace OCA\User_LDAP;
 
 use OC\ServerNotAvailableException;
+use OCA\user_ldap\lib\Access;
+use OCA\user_ldap\lib\Configuration;
+use OCA\user_ldap\lib\Helper;
+use OCA\user_ldap\lib\ILDAPWrapper;
+use OCA\user_ldap\lib\LDAPUtility;
 
 class Wizard extends LDAPUtility {
 	static protected $l;
diff --git a/apps/user_ldap/lib/wizardresult.php b/apps/user_ldap/lib/WizardResult.php
similarity index 98%
rename from apps/user_ldap/lib/wizardresult.php
rename to apps/user_ldap/lib/WizardResult.php
index 54f01cf59b8..1adce9a1389 100644
--- a/apps/user_ldap/lib/wizardresult.php
+++ b/apps/user_ldap/lib/WizardResult.php
@@ -23,7 +23,7 @@
  *
  */
 
-namespace OCA\user_ldap\lib;
+namespace OCA\User_LDAP;
 
 class WizardResult {
 	protected $changes = array();
diff --git a/apps/user_ldap/tests/wizard.php b/apps/user_ldap/tests/WizardTest.php
similarity index 98%
rename from apps/user_ldap/tests/wizard.php
rename to apps/user_ldap/tests/WizardTest.php
index a73292db354..83cd58d2231 100644
--- a/apps/user_ldap/tests/wizard.php
+++ b/apps/user_ldap/tests/WizardTest.php
@@ -23,9 +23,9 @@
  *
  */
 
-namespace OCA\user_ldap\tests;
+namespace OCA\User_LDAP\tests;
 
-use \OCA\user_ldap\lib\Wizard;
+use \OCA\User_LDAP\Wizard;
 
 // use \OCA\user_ldap\User_LDAP as UserLDAP;
 // use \OCA\user_ldap\lib\Access;
@@ -37,9 +37,9 @@ use \OCA\user_ldap\lib\Wizard;
  *
  * @group DB
  *
- * @package OCA\user_ldap\tests
+ * @package OCA\User_LDAP\tests
  */
-class Test_Wizard extends \Test\TestCase {
+class WizardTest extends \Test\TestCase {
 	protected function setUp() {
 		parent::setUp();
 		//we need to make sure the consts are defined, otherwise tests will fail
-- 
GitLab