Use AbstractTestCase instead of PmaTestCase for all tests not needing mockResponse
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
7b6cf8a1b9
commit
49a6d6e8d0
@ -13,7 +13,7 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||
/**
|
||||
* Tests behaviour of PMA_Advisor class
|
||||
*/
|
||||
class AdvisorTest extends PmaTestCase
|
||||
class AdvisorTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -7,7 +7,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Config;
|
||||
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use stdClass;
|
||||
use function array_keys;
|
||||
use function count;
|
||||
@ -15,7 +15,7 @@ use function count;
|
||||
/**
|
||||
* Tests for Config File Management
|
||||
*/
|
||||
class ConfigFileTest extends PmaTestCase
|
||||
class ConfigFileTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Any valid key that exists in config.default.php and isn't empty
|
||||
|
||||
@ -8,13 +8,13 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\Descriptions;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
* Tests for PMA_FormDisplay class
|
||||
*/
|
||||
class DescriptionTest extends PmaTestCase
|
||||
class DescriptionTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Setup tests
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Config\FormDisplay;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Config\Form;
|
||||
use ReflectionClass;
|
||||
use ReflectionMethod;
|
||||
@ -20,7 +20,7 @@ use function gettype;
|
||||
/**
|
||||
* Tests for PMA_FormDisplay class
|
||||
*/
|
||||
class FormDisplayTest extends PmaTestCase
|
||||
class FormDisplayTest extends AbstractTestCase
|
||||
{
|
||||
/** @var FormDisplay */
|
||||
protected $object;
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Config\Form;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use ReflectionProperty;
|
||||
use function array_keys;
|
||||
@ -18,7 +18,7 @@ use function preg_match;
|
||||
/**
|
||||
* Tests for PMA_Form class
|
||||
*/
|
||||
class FormTest extends PmaTestCase
|
||||
class FormTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Form */
|
||||
protected $object;
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests\Config\Forms;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PMA_FormDisplay class
|
||||
*/
|
||||
class FormListTest extends PmaTestCase
|
||||
class FormListTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\PageSettings;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Config\PageSettings
|
||||
*/
|
||||
class PageSettingsTest extends PmaTestCase
|
||||
class PageSettingsTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Setup tests
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Config\ServerConfigChecks;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionException;
|
||||
use ReflectionProperty;
|
||||
use function array_keys;
|
||||
@ -17,7 +17,7 @@ use function array_keys;
|
||||
/**
|
||||
* Tests for ServeConfigChecks class
|
||||
*/
|
||||
class ServerConfigChecksTest extends PmaTestCase
|
||||
class ServerConfigChecksTest extends AbstractTestCase
|
||||
{
|
||||
/** @var string */
|
||||
private $sessionID;
|
||||
|
||||
@ -36,7 +36,7 @@ use function sys_get_temp_dir;
|
||||
/**
|
||||
* Tests behaviour of PhpMyAdmin\Config class
|
||||
*/
|
||||
class ConfigTest extends PmaTestCase
|
||||
class ConfigTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Turn off backup globals
|
||||
|
||||
@ -7,10 +7,10 @@ use PhpMyAdmin\Controllers\Database\PrivilegesController;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Server\Privileges;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
class PrivilegesControllerTest extends PmaTestCase
|
||||
class PrivilegesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Configures global environment.
|
||||
|
||||
@ -17,7 +17,7 @@ use PhpMyAdmin\RelationCleanup;
|
||||
use PhpMyAdmin\Replication;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
@ -32,7 +32,7 @@ use function json_encode;
|
||||
*
|
||||
* this class is for testing StructureController class
|
||||
*/
|
||||
class StructureControllerTest extends PmaTestCase
|
||||
class StructureControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ResponseStub */
|
||||
private $response;
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Message;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use PhpMyAdmin\Url;
|
||||
use function sprintf;
|
||||
@ -23,7 +23,7 @@ use function sprintf;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Controllers\Table\IndexesController
|
||||
*/
|
||||
class IndexesControllerTest extends PmaTestCase
|
||||
class IndexesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Setup function for test cases
|
||||
|
||||
@ -7,10 +7,10 @@ use PhpMyAdmin\Controllers\Table\PrivilegesController;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Server\Privileges;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
class PrivilegesControllerTest extends PmaTestCase
|
||||
class PrivilegesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Configures global environment.
|
||||
|
||||
@ -11,14 +11,14 @@ use PhpMyAdmin\Controllers\Table\RelationController;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Controllers\Table\RelationController
|
||||
*/
|
||||
class RelationControllerTest extends PmaTestCase
|
||||
class RelationControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ResponseStub */
|
||||
private $_response;
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Controllers\Table\SearchController;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Table\Search;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use PhpMyAdmin\Types;
|
||||
use stdClass;
|
||||
@ -19,7 +19,7 @@ use stdClass;
|
||||
/**
|
||||
* Tests for PMA_TableSearch
|
||||
*/
|
||||
class SearchControllerTest extends PmaTestCase
|
||||
class SearchControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ResponseStub */
|
||||
private $_response;
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\RelationCleanup;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use ReflectionClass;
|
||||
@ -25,7 +25,7 @@ use ReflectionClass;
|
||||
*
|
||||
* this class is for testing StructureController class
|
||||
*/
|
||||
class StructureControllerTest extends PmaTestCase
|
||||
class StructureControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ResponseStub */
|
||||
private $_response;
|
||||
|
||||
@ -10,12 +10,12 @@ use PhpMyAdmin\Database\Qbe;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Database\Qbe class
|
||||
*/
|
||||
class QbeTest extends PmaTestCase
|
||||
class QbeTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Database;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Database\Search;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for database search.
|
||||
*/
|
||||
class SearchTest extends PmaTestCase
|
||||
class SearchTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -16,7 +16,7 @@ use stdClass;
|
||||
/**
|
||||
* Tests basic functionality of dummy dbi driver
|
||||
*/
|
||||
class DatabaseInterfaceTest extends PmaTestCase
|
||||
class DatabaseInterfaceTest extends AbstractTestCase
|
||||
{
|
||||
/** @var DatabaseInterface */
|
||||
private $_dbi;
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Display\Results as DisplayResults;
|
||||
use PhpMyAdmin\Plugins\Transformations\Text_Plain_Link;
|
||||
use PhpMyAdmin\SqlParser\Parser;
|
||||
use PhpMyAdmin\SqlParser\Utils\Query;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use stdClass;
|
||||
use function count;
|
||||
@ -21,7 +21,7 @@ use function hex2bin;
|
||||
/**
|
||||
* Test cases for displaying results.
|
||||
*/
|
||||
class ResultsTest extends PmaTestCase
|
||||
class ResultsTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Bdb;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Bdb
|
||||
*/
|
||||
class BdbTest extends PmaTestCase
|
||||
class BdbTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Binlog;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Binlog
|
||||
*/
|
||||
class BinlogTest extends PmaTestCase
|
||||
class BinlogTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Innodb;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Innodb
|
||||
*/
|
||||
class InnodbTest extends PmaTestCase
|
||||
class InnodbTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Memory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Memory
|
||||
*/
|
||||
class MemoryTest extends PmaTestCase
|
||||
class MemoryTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\MrgMyisam;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\MrgMyisam
|
||||
*/
|
||||
class MrgMyisamTest extends PmaTestCase
|
||||
class MrgMyisamTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Myisam;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Myisam
|
||||
*/
|
||||
class MyisamTest extends PmaTestCase
|
||||
class MyisamTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Engines\Ndbcluster;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Ndbcluster
|
||||
*/
|
||||
class NdbclusterTest extends PmaTestCase
|
||||
class NdbclusterTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -8,13 +8,13 @@ namespace PhpMyAdmin\Tests\Engines;
|
||||
|
||||
use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\Engines\Pbxt;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Engines\Pbxt;
|
||||
*/
|
||||
class PbxtTest extends PmaTestCase
|
||||
class PbxtTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -15,7 +15,7 @@ use const E_WARNING;
|
||||
/**
|
||||
* Test for PhpMyAdmin\ErrorHandler class.
|
||||
*/
|
||||
class ErrorHandlerTest extends PmaTestCase
|
||||
class ErrorHandlerTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -13,7 +13,7 @@ use function preg_match;
|
||||
/**
|
||||
* Error class testing.
|
||||
*/
|
||||
class ErrorTest extends PmaTestCase
|
||||
class ErrorTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* @var Error
|
||||
|
||||
@ -13,7 +13,7 @@ use function file_get_contents;
|
||||
/**
|
||||
* tests for PhpMyAdmin\File class
|
||||
*/
|
||||
class FileTest extends PmaTestCase
|
||||
class FileTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Setup function for test cases
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Font;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Font class
|
||||
*/
|
||||
class FontTest extends PmaTestCase
|
||||
class FontTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Font */
|
||||
private $font;
|
||||
|
||||
@ -13,7 +13,7 @@ use function json_encode;
|
||||
/**
|
||||
* Tests for Footer class
|
||||
*/
|
||||
class FooterTest extends PmaTestCase
|
||||
class FooterTest extends AbstractTestCase
|
||||
{
|
||||
/** @var array store private attributes of PhpMyAdmin\Footer */
|
||||
public $privates = [];
|
||||
|
||||
@ -23,7 +23,7 @@ use function rmdir;
|
||||
* Tests behaviour of PhpMyAdmin\Git class
|
||||
* @group git-revision
|
||||
*/
|
||||
class GitTest extends PmaTestCase
|
||||
class GitTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Git */
|
||||
protected $object;
|
||||
|
||||
@ -18,7 +18,7 @@ use function defined;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class HeaderTest extends PmaTestCase
|
||||
class HeaderTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Configures global environment.
|
||||
|
||||
@ -7,7 +7,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Html;
|
||||
|
||||
use PhpMyAdmin\Html\Generator;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Util;
|
||||
use function call_user_func_array;
|
||||
use function htmlspecialchars;
|
||||
@ -16,7 +16,7 @@ use function urlencode;
|
||||
/**
|
||||
* Test for \PhpMyAdmin\Html\MySQLDocumentation class
|
||||
*/
|
||||
class GeneratorTest extends PmaTestCase
|
||||
class GeneratorTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Set up the test.
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Html;
|
||||
|
||||
use PhpMyAdmin\Html\MySQLDocumentation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Test for \PhpMyAdmin\Html\MySQLDocumentation class
|
||||
*/
|
||||
class MySQLDocumentationTest extends PmaTestCase
|
||||
class MySQLDocumentationTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for \PhpMyAdmin\Html\MySQLDocumentation::showDocumentation
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Index;
|
||||
/**
|
||||
* Test for Index class
|
||||
*/
|
||||
class IndexTest extends PmaTestCase
|
||||
class IndexTest extends AbstractTestCase
|
||||
{
|
||||
private $_params = [];
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use function strtolower;
|
||||
/**
|
||||
* Tests behaviour of PMA_Advisor class
|
||||
*/
|
||||
class LanguageTest extends PmaTestCase
|
||||
class LanguageTest extends AbstractTestCase
|
||||
{
|
||||
/** @var LanguageManager */
|
||||
private $manager;
|
||||
|
||||
@ -12,7 +12,7 @@ use function str_repeat;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Linter
|
||||
*/
|
||||
class LinterTest extends PmaTestCase
|
||||
class LinterTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\ListDatabase;
|
||||
/**
|
||||
* tests for ListDatabase class
|
||||
*/
|
||||
class ListDatabaseTest extends PmaTestCase
|
||||
class ListDatabaseTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* ListDatabase instance
|
||||
|
||||
@ -14,7 +14,7 @@ use function defined;
|
||||
/**
|
||||
* Test for Menu class
|
||||
*/
|
||||
class MenuTest extends PmaTestCase
|
||||
class MenuTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Configures global environment.
|
||||
|
||||
@ -12,7 +12,7 @@ use function md5;
|
||||
/**
|
||||
* Test for Message class
|
||||
*/
|
||||
class MessageTest extends PmaTestCase
|
||||
class MessageTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* @var Message
|
||||
|
||||
@ -10,13 +10,13 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Navigation\Navigation;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Navigation class
|
||||
*/
|
||||
class NavigationTest extends PmaTestCase
|
||||
class NavigationTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Navigation */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Navigation;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Navigation\NavigationTree;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\NavigationTree class
|
||||
*/
|
||||
class NavigationTreeTest extends PmaTestCase
|
||||
class NavigationTreeTest extends AbstractTestCase
|
||||
{
|
||||
/** @var NavigationTree */
|
||||
protected $object;
|
||||
|
||||
@ -8,13 +8,13 @@ namespace PhpMyAdmin\Tests\Navigation;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PHPUnit\Framework\Exception;
|
||||
|
||||
/**
|
||||
* Tests for NodeFactory class
|
||||
*/
|
||||
class NodeFactoryTest extends PmaTestCase
|
||||
class NodeFactoryTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumnContainer class
|
||||
*/
|
||||
class NodeColumnContainerTest extends PmaTestCase
|
||||
class NodeColumnContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeColumn class
|
||||
*/
|
||||
class NodeColumnTest extends PmaTestCase
|
||||
class NodeColumnTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -8,14 +8,14 @@ namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeDatabaseChild class
|
||||
*/
|
||||
class NodeDatabaseChildTest extends PmaTestCase
|
||||
class NodeDatabaseChildTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Mock of NodeDatabaseChild
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\NodeDatabase;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeDatabase class
|
||||
*/
|
||||
class NodeDatabaseTest extends PmaTestCase
|
||||
class NodeDatabaseTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,13 +7,13 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEventContainer class
|
||||
*/
|
||||
class NodeEventContainerTest extends PmaTestCase
|
||||
class NodeEventContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEvent class
|
||||
*/
|
||||
class NodeEventTest extends PmaTestCase
|
||||
class NodeEventTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunctionContainer class
|
||||
*/
|
||||
class NodeFunctionContainerTest extends PmaTestCase
|
||||
class NodeFunctionContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeFunction class
|
||||
*/
|
||||
class NodeFunctionTest extends PmaTestCase
|
||||
class NodeFunctionTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndexContainer class
|
||||
*/
|
||||
class NodeIndexContainerTest extends PmaTestCase
|
||||
class NodeIndexContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndex class
|
||||
*/
|
||||
class NodeIndexTest extends PmaTestCase
|
||||
class NodeIndexTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedureContainer class
|
||||
*/
|
||||
class NodeProcedureContainerTest extends PmaTestCase
|
||||
class NodeProcedureContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeProcedure class
|
||||
*/
|
||||
class NodeProcedureTest extends PmaTestCase
|
||||
class NodeProcedureTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTableContainer class
|
||||
*/
|
||||
class NodeTableContainerTest extends PmaTestCase
|
||||
class NodeTableContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTable class
|
||||
*/
|
||||
class NodeTableTest extends PmaTestCase
|
||||
class NodeTableTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -9,13 +9,13 @@ namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Navigation\Nodes\Node;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
|
||||
/**
|
||||
* Tests for Node class
|
||||
*/
|
||||
class NodeTest extends PmaTestCase
|
||||
class NodeTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*/
|
||||
class NodeTriggerContainerTest extends PmaTestCase
|
||||
class NodeTriggerContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeTrigger class
|
||||
*/
|
||||
class NodeTriggerTest extends PmaTestCase
|
||||
class NodeTriggerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeViewContainer class
|
||||
*/
|
||||
class NodeViewContainerTest extends PmaTestCase
|
||||
class NodeViewContainerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -7,13 +7,13 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Navigation\Nodes;
|
||||
|
||||
use PhpMyAdmin\Navigation\NodeFactory;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function is_string;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Navigation\Nodes\NodeView class
|
||||
*/
|
||||
class NodeViewTest extends PmaTestCase
|
||||
class NodeViewTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Pdf;
|
||||
/**
|
||||
* tests for Pdf class
|
||||
*/
|
||||
class PdfTest extends PmaTestCase
|
||||
class PdfTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -10,14 +10,14 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\ErrorHandler;
|
||||
use PhpMyAdmin\Plugins\Auth\AuthenticationConfig;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function ob_get_clean;
|
||||
use function ob_start;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Plugins\Auth\AuthenticationConfig class
|
||||
*/
|
||||
class AuthenticationConfigTest extends PmaTestCase
|
||||
class AuthenticationConfigTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\SelectPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
@ -26,7 +26,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportCodegenTest extends PmaTestCase
|
||||
class ExportCodegenTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ExportCodegen */
|
||||
protected $object;
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -26,7 +26,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportCsvTest extends PmaTestCase
|
||||
class ExportCsvTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Properties\Options\Items\SelectPropertyItem;
|
||||
use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -25,7 +25,7 @@ use function array_shift;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportExcelTest extends PmaTestCase
|
||||
class ExportExcelTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -28,7 +28,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportHtmlwordTest extends PmaTestCase
|
||||
class ExportHtmlwordTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
@ -23,7 +23,7 @@ use function array_shift;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportJsonTest extends PmaTestCase
|
||||
class ExportJsonTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -27,7 +27,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportLatexTest extends PmaTestCase
|
||||
class ExportLatexTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup;
|
||||
use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -26,7 +26,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportMediawikiTest extends PmaTestCase
|
||||
class ExportMediawikiTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
@ -25,7 +25,7 @@ use function array_shift;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportOdsTest extends PmaTestCase
|
||||
class ExportOdsTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
@ -26,7 +26,7 @@ use function array_shift;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportOdtTest extends PmaTestCase
|
||||
class ExportOdtTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -23,7 +23,7 @@ use function array_shift;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportPdfTest extends PmaTestCase
|
||||
class ExportPdfTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -24,7 +24,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportPhparrayTest extends PmaTestCase
|
||||
class ExportPhparrayTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
@ -32,7 +32,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportSqlTest extends PmaTestCase
|
||||
class ExportSqlTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -27,7 +27,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportTexytextTest extends PmaTestCase
|
||||
class ExportTexytextTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Table;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -26,7 +26,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportXmlTest extends PmaTestCase
|
||||
class ExportXmlTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use function array_shift;
|
||||
@ -24,7 +24,7 @@ use function ob_start;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class ExportYamlTest extends PmaTestCase
|
||||
class ExportYamlTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Plugins\Export\Helpers;
|
||||
|
||||
use PhpMyAdmin\Plugins\Export\Helpers\TableProperty;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Plugins\Export\Helpers\TableProperty class
|
||||
*/
|
||||
class TablePropertyTest extends PmaTestCase
|
||||
class TablePropertyTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -9,13 +9,13 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportCsv;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function basename;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportCsv class
|
||||
*/
|
||||
class ImportCsvTest extends PmaTestCase
|
||||
class ImportCsvTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* @var ImportCsv
|
||||
|
||||
@ -9,13 +9,13 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportLdi;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportLdi class
|
||||
*/
|
||||
class ImportLdiTest extends PmaTestCase
|
||||
class ImportLdiTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportMediawiki;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportMediawiki class
|
||||
*/
|
||||
class ImportMediawikiTest extends PmaTestCase
|
||||
class ImportMediawikiTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportOds;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportOds class
|
||||
*/
|
||||
class ImportOdsTest extends PmaTestCase
|
||||
class ImportOdsTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportShp;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function define;
|
||||
use function defined;
|
||||
use function extension_loaded;
|
||||
@ -17,7 +17,7 @@ use function extension_loaded;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportShp class
|
||||
*/
|
||||
class ImportShpTest extends PmaTestCase
|
||||
class ImportShpTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* @var ImportShp
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportSql;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportSql class
|
||||
*/
|
||||
class ImportSqlTest extends PmaTestCase
|
||||
class ImportSqlTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Import;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\File;
|
||||
use PhpMyAdmin\Plugins\Import\ImportXml;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Import\ImportXml class
|
||||
*/
|
||||
class ImportXmlTest extends PmaTestCase
|
||||
class ImportXmlTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Schema;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Plugins\Schema\Dia\DiaRelationSchema;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Schema\Dia\DiaRelationSchema class
|
||||
*/
|
||||
class DiaRelationSchemaTest extends PmaTestCase
|
||||
class DiaRelationSchemaTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Schema;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Plugins\Schema\Eps\EpsRelationSchema;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for EpsRelationSchema class
|
||||
*/
|
||||
class EpsRelationSchemaTest extends PmaTestCase
|
||||
class EpsRelationSchemaTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Plugins\Schema;
|
||||
|
||||
use PhpMyAdmin\Plugins\Schema\ExportRelationSchema;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Schema\ExportRelationSchema class
|
||||
*/
|
||||
class ExportRelationSchemaTest extends PmaTestCase
|
||||
class ExportRelationSchemaTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Schema;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Plugins\Schema\Pdf\PdfRelationSchema;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PdfRelationSchema class
|
||||
*/
|
||||
class PdfRelationSchemaTest extends PmaTestCase
|
||||
class PdfRelationSchemaTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Plugins\Schema;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Plugins\Schema\Svg\SvgRelationSchema;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Plugins\Schema\Svg\SvgRelationSchema class
|
||||
*/
|
||||
class SvgRelationSchemaTest extends PmaTestCase
|
||||
class SvgRelationSchemaTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -25,7 +25,7 @@ use PhpMyAdmin\Plugins\Transformations\Text_Plain_Link;
|
||||
use PhpMyAdmin\Plugins\Transformations\Text_Plain_Longtoipv4;
|
||||
use PhpMyAdmin\Plugins\Transformations\Text_Plain_PreApPend;
|
||||
use PhpMyAdmin\Plugins\Transformations\Text_Plain_Substring;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use function date_default_timezone_set;
|
||||
use function function_exists;
|
||||
@ -34,7 +34,7 @@ use function method_exists;
|
||||
/**
|
||||
* Tests for different input/output transformation plugins
|
||||
*/
|
||||
class TransformationPluginsTest extends PmaTestCase
|
||||
class TransformationPluginsTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Routing;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Routing
|
||||
*/
|
||||
class RoutingTest extends PmaTestCase
|
||||
class RoutingTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for Routing::getDispatcher
|
||||
|
||||
@ -14,7 +14,7 @@ use function defined;
|
||||
/**
|
||||
* Tests for Script.php
|
||||
*/
|
||||
class ScriptsTest extends PmaTestCase
|
||||
class ScriptsTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Scripts */
|
||||
protected $object;
|
||||
|
||||
@ -9,13 +9,13 @@ namespace PhpMyAdmin\Tests\Setup;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\ConfigFile;
|
||||
use PhpMyAdmin\Setup\ConfigGenerator;
|
||||
use PhpMyAdmin\Tests\PmaTestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Setup\ConfigGenerator
|
||||
*/
|
||||
class ConfigGeneratorTest extends PmaTestCase
|
||||
class ConfigGeneratorTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -24,7 +24,7 @@ use PHPUnit\Framework\MockObject\MockObject;
|
||||
/**
|
||||
* Tests for StorageEngine.php
|
||||
*/
|
||||
class StorageEngineTest extends PmaTestCase
|
||||
class StorageEngineTest extends AbstractTestCase
|
||||
{
|
||||
/** @var StorageEngine|MockObject */
|
||||
protected $object;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user