Move navigation classes to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
72161e8107
commit
dc1407ca66
@ -12,7 +12,7 @@ use PhpMyAdmin\Console;
|
||||
use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\Menu;
|
||||
use PhpMyAdmin\Message;
|
||||
use PMA\libraries\navigation\Navigation;
|
||||
use PhpMyAdmin\Navigation\Navigation;
|
||||
use PhpMyAdmin\RecentFavoriteTable;
|
||||
use PhpMyAdmin\Sanitize;
|
||||
use PhpMyAdmin\Scripts;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation;
|
||||
namespace PhpMyAdmin\Navigation;
|
||||
|
||||
use PhpMyAdmin\Config\PageSettings;
|
||||
use PhpMyAdmin\Message;
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation;
|
||||
namespace PhpMyAdmin\Navigation;
|
||||
|
||||
use PhpMyAdmin\Sanitize;
|
||||
use PhpMyAdmin\Template;
|
||||
@ -5,13 +5,13 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation;
|
||||
namespace PhpMyAdmin\Navigation;
|
||||
|
||||
use PMA\libraries\navigation\nodes\Node;
|
||||
use PMA\libraries\navigation\nodes\NodeDatabase;
|
||||
use PMA\libraries\navigation\nodes\NodeTable;
|
||||
use PMA\libraries\navigation\nodes\NodeTableContainer;
|
||||
use PMA\libraries\navigation\nodes\NodeViewContainer;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeDatabase;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeTable;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeTableContainer;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeViewContainer;
|
||||
use PhpMyAdmin\RecentFavoriteTable;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Util;
|
||||
@ -860,7 +860,7 @@ class NavigationTree
|
||||
$children = $this->_tree->children;
|
||||
usort(
|
||||
$children,
|
||||
array('PMA\\libraries\\navigation\\NavigationTree', 'sortNode')
|
||||
array('PhpMyAdmin\\Navigation\\NavigationTree', 'sortNode')
|
||||
);
|
||||
$this->_setVisibility();
|
||||
for ($i = 0, $nbChildren = count($children); $i < $nbChildren; $i++) {
|
||||
@ -903,7 +903,7 @@ class NavigationTree
|
||||
$children = $node->children;
|
||||
usort(
|
||||
$children,
|
||||
array('PMA\\libraries\\navigation\\NavigationTree', 'sortNode')
|
||||
array('PhpMyAdmin\\Navigation\\NavigationTree', 'sortNode')
|
||||
);
|
||||
for ($i = 0, $nbChildren = count($children); $i < $nbChildren; $i++) {
|
||||
if ($i + 1 != $nbChildren) {
|
||||
@ -1299,7 +1299,7 @@ class NavigationTree
|
||||
$children = $this->_tree->children;
|
||||
usort(
|
||||
$children,
|
||||
array('PMA\\libraries\\navigation\\NavigationTree', 'sortNode')
|
||||
array('PhpMyAdmin\\Navigation\\NavigationTree', 'sortNode')
|
||||
);
|
||||
$this->_setVisibility();
|
||||
for ($i = 0, $nbChildren = count($children); $i < $nbChildren; $i++) {
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation;
|
||||
namespace PhpMyAdmin\Navigation;
|
||||
|
||||
use PMA\libraries\navigation\nodes\Node;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
|
||||
/**
|
||||
* Node factory - instantiates Node objects or objects derived from the Node class
|
||||
@ -16,7 +16,7 @@ use PMA\libraries\navigation\nodes\Node;
|
||||
*/
|
||||
class NodeFactory
|
||||
{
|
||||
protected static $_namespace = 'PMA\\libraries\\navigation\\nodes\\%s';
|
||||
protected static $_namespace = 'PhpMyAdmin\\Navigation\\Nodes\\%s';
|
||||
/**
|
||||
* Sanitizes the name of a Node class
|
||||
*
|
||||
@ -89,4 +89,3 @@ class NodeFactory
|
||||
return new $class($name, $type, $is_group);
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -341,7 +341,7 @@ class Node
|
||||
|
||||
/**
|
||||
* Returns the names of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('tables', 'views', etc)
|
||||
@ -550,7 +550,7 @@ class Node
|
||||
|
||||
/**
|
||||
* Returns the number of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('tables', 'views', etc)
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
@ -57,8 +57,8 @@ class NodeDatabase extends Node
|
||||
|
||||
/**
|
||||
* Returns the number of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase
|
||||
* and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase
|
||||
* and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('tables', 'views', etc)
|
||||
@ -352,8 +352,8 @@ class NodeDatabase extends Node
|
||||
|
||||
/**
|
||||
* Returns the names of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase
|
||||
* and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase
|
||||
* and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('tables', 'views', etc)
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
/**
|
||||
* Represents container node that carries children of a database
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
require_once './libraries/check_user_privileges.lib.php';
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -75,8 +75,8 @@ class NodeTable extends NodeDatabaseChild
|
||||
|
||||
/**
|
||||
* Returns the number of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase
|
||||
* and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase
|
||||
* and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('columns' or 'indexes')
|
||||
@ -145,8 +145,8 @@ class NodeTable extends NodeDatabaseChild
|
||||
|
||||
/**
|
||||
* Returns the names of children of type $type present inside this container
|
||||
* This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase
|
||||
* and PMA\libraries\navigation\nodes\NodeTable classes
|
||||
* This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase
|
||||
* and PhpMyAdmin\Navigation\Nodes\NodeTable classes
|
||||
*
|
||||
* @param string $type The type of item we are looking for
|
||||
* ('tables', 'views', etc)
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
*
|
||||
* @package PhpMyAdmin-Navigation
|
||||
*/
|
||||
namespace PMA\libraries\navigation\nodes;
|
||||
namespace PhpMyAdmin\Navigation\Nodes;
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
/**
|
||||
@ -9,7 +9,7 @@
|
||||
// Include common functionalities
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Config\PageSettings;
|
||||
use PMA\libraries\navigation\Navigation;
|
||||
use PhpMyAdmin\Navigation\Navigation;
|
||||
|
||||
require_once './libraries/common.inc.php';
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\Navigation class
|
||||
* Test for PhpMyAdmin\Navigation\Navigation class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -14,14 +14,14 @@ require_once 'libraries/relation.lib.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\Navigation class
|
||||
* Tests for PhpMyAdmin\Navigation\Navigation class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class NavigationTest extends PMATestCase
|
||||
{
|
||||
/**
|
||||
* @var PMA\libraries\navigation\Navigation
|
||||
* @var PhpMyAdmin\Navigation\Navigation
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
@ -33,7 +33,7 @@ class NavigationTest extends PMATestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new PMA\libraries\navigation\Navigation();
|
||||
$this->object = new PhpMyAdmin\Navigation\Navigation();
|
||||
$GLOBALS['cfgRelation']['db'] = 'pmadb';
|
||||
$GLOBALS['cfgRelation']['navigationhiding'] = 'navigationhiding';
|
||||
$GLOBALS['cfg']['Server']['user'] = 'user';
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NavigationTree class
|
||||
* Test for PhpMyAdmin\Navigation\NavigationTree class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -10,7 +10,7 @@
|
||||
* we must set $GLOBALS['server'] here
|
||||
* since 'check_user_privileges.lib.php' will use it globally
|
||||
*/
|
||||
use PMA\libraries\navigation\NavigationTree;
|
||||
use PhpMyAdmin\Navigation\NavigationTree;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
$GLOBALS['server'] = 0;
|
||||
@ -22,7 +22,7 @@ require_once 'libraries/check_user_privileges.lib.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\NavigationTree class
|
||||
* Tests for PhpMyAdmin\Navigation\NavigationTree class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -52,7 +52,7 @@ class NavigationTreeTest extends PMATestCase
|
||||
$GLOBALS['cfg']['ShowDatabasesNavigationAsTree'] = true;
|
||||
|
||||
$GLOBALS['pmaThemeImage'] = 'image';
|
||||
$this->object = new PMA\libraries\navigation\NavigationTree();
|
||||
$this->object = new PhpMyAdmin\Navigation\NavigationTree();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeColumnContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumnContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeColumnContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumnContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -30,7 +29,7 @@ class NodeColumnContainerTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::__construct
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::__construct
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeColumn class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumn class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeColumn class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumn class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -30,7 +29,7 @@ class NodeColumnTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\nodes\NodeDatabaseChild
|
||||
* Test for PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PMA\libraries\navigation\nodes\NodeDatabaseChild;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
@ -15,7 +15,7 @@ require_once 'libraries/relation.lib.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeDatabaseChild class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
@ -42,7 +42,7 @@ class NodeDatabaseChildTest extends PMATestCase
|
||||
$_SESSION['relation'][1]['PMA_VERSION'] = PMA_VERSION;
|
||||
$_SESSION['relation'][1]['navwork'] = true;
|
||||
$this->object = $this->getMockForAbstractClass(
|
||||
'PMA\libraries\navigation\nodes\NodeDatabaseChild', array('child')
|
||||
'PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild', array('child')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeDatabase class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeDatabase class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeDatabase class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeDatabase class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeEventContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEventContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeEventContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEventContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeEvent class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEvent class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeEvent class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEvent class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -6,11 +6,10 @@
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PMA\libraries\navigation\nodes\Node;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
@ -31,7 +30,7 @@ class NodeFactoryTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -44,7 +43,7 @@ class NodeFactoryTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -61,7 +60,7 @@ class NodeFactoryTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -79,7 +78,7 @@ class NodeFactoryTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -90,7 +89,7 @@ class NodeFactoryTest extends PMATestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for PMA\libraries\navigation\NodeFactory::getInstance
|
||||
* Test for PhpMyAdmin\Navigation\NodeFactory::getInstance
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeFunctionContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunctionContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeFunctionContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunctionContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeFunction class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunction class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeFunction class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunction class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeIndexContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndexContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeIndexContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndexContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeIndex class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndex class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeIndex class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndex class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeProcedureContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedureContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeProcedureContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedureContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeProcedure class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedure class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeProcedure class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedure class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTableContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTableContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTableContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTableContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTable class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTable class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTable class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTable class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -6,11 +6,10 @@
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PMA\libraries\navigation\nodes\Node;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'libraries/database_interface.inc.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
@ -282,7 +281,7 @@ class NodeTest extends PMATestCase
|
||||
public function testGetWhereClause()
|
||||
{
|
||||
$method = new ReflectionMethod(
|
||||
'PMA\libraries\navigation\nodes\Node', '_getWhereClause'
|
||||
'PhpMyAdmin\Navigation\Nodes\Node', '_getWhereClause'
|
||||
);
|
||||
$method->setAccessible(true);
|
||||
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTrigger class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTrigger class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTrigger class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeTrigger class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeViewContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeViewContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeViewContainer class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeViewContainer class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeView class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeView class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
use PMA\libraries\navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Theme;
|
||||
|
||||
require_once 'libraries/navigation/NodeFactory.php';
|
||||
require_once 'test/PMATestCase.php';
|
||||
|
||||
/**
|
||||
* Tests for PMA\libraries\navigation\nodes\NodeView class
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeView class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user