Skip to content

Commit

Permalink
Move the controller to appropriate package
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Nov 3, 2015
1 parent fbef26e commit a701078
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package PMA
*/

namespace PMA\libraries\controllers;
namespace PMA\libraries\controllers\table;

use PMA\libraries\config\PageSettings;
use PMA\libraries\Index;
Expand Down
6 changes: 3 additions & 3 deletions tbl_structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace PMA;

use PMA\libraries\controllers\TableStructureController;
use PMA\libraries\controllers\table\TableStructureController;
use PMA\libraries\Response;

require_once 'libraries/common.inc.php';
Expand All @@ -21,9 +21,9 @@
require_once 'libraries/config/page_settings.forms.php';

$container = libraries\di\Container::getDefaultContainer();
$container->factory('PMA\libraries\controllers\TableStructureController');
$container->factory('PMA\libraries\controllers\table\TableStructureController');
$container->alias(
'TableStructureController', 'PMA\libraries\controllers\TableStructureController'
'TableStructureController', 'PMA\libraries\controllers\table\TableStructureController'
);
$container->set('PMA\libraries\Response', Response::getInstance());
$container->alias('response', 'PMA\libraries\Response');
Expand Down
8 changes: 4 additions & 4 deletions test/classes/controllers/TableStructureControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function testGetKeyForTablePrimaryOne()
$GLOBALS['dbi']->expects($this->any())->method('fetchAssoc')
->will($this->returnValue(null));

$class = new ReflectionClass('\PMA\libraries\controllers\TableStructureController');
$class = new ReflectionClass('\PMA\libraries\controllers\table\TableStructureController');
$method = $class->getMethod('getKeyForTablePrimary');
$method->setAccessible(true);

Expand Down Expand Up @@ -143,7 +143,7 @@ function () {
)
);

$class = new ReflectionClass('\PMA\libraries\controllers\TableStructureController');
$class = new ReflectionClass('\PMA\libraries\controllers\table\TableStructureController');
$method = $class->getMethod('getKeyForTablePrimary');
$method->setAccessible(true);

Expand All @@ -169,7 +169,7 @@ function () {
*/
public function testAdjustColumnPrivileges()
{
$class = new ReflectionClass('\PMA\libraries\controllers\TableStructureController');
$class = new ReflectionClass('\PMA\libraries\controllers\table\TableStructureController');
$method = $class->getMethod('adjustColumnPrivileges');
$method->setAccessible(true);

Expand All @@ -195,7 +195,7 @@ public function testAdjustColumnPrivileges()
*/
public function testGetMultipleFieldCommandType()
{
$class = new ReflectionClass('\PMA\libraries\controllers\TableStructureController');
$class = new ReflectionClass('\PMA\libraries\controllers\table\TableStructureController');
$method = $class->getMethod('getMultipleFieldCommandType');
$method->setAccessible(true);

Expand Down

0 comments on commit a701078

Please sign in to comment.