Skip to content

Commit

Permalink
More tests for classes
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 Oct 16, 2015
1 parent ab49273 commit 1043a36
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 19 deletions.
Expand Up @@ -18,11 +18,11 @@
require_once 'libraries/php-gettext/gettext.inc';

/**
* tests for methods under Config file generator
* Tests for PMA\setup\lib\ConfigGenerator
*
* @package PhpMyAdmin-test
*/
class PMA_ConfigGenerator_Test extends PHPUnit_Framework_TestCase
class ConfigGeneratorTest extends PHPUnit_Framework_TestCase
{

/**
Expand Down
Expand Up @@ -18,7 +18,7 @@
*
* @package PhpMyAdmin-test
*/
class PMA_ConfigFile_Test extends PHPUnit_Framework_TestCase
class ConfigFileTest extends PHPUnit_Framework_TestCase
{
/**
* Any valid key that exists in config.default.php and isn't empty
Expand Down
Expand Up @@ -11,11 +11,11 @@
require_once 'libraries/config/page_settings.forms.php';

/**
* Tests for Page-related settings
* Tests for PMA\libraries\config\PageSettings
*
* @package PhpMyAdmin-test
*/
class PMA_PageSettings_Test extends PHPUnit_Framework_TestCase
class PageSettingsTest extends PHPUnit_Framework_TestCase
{
/**
* Setup tests
Expand All @@ -24,6 +24,7 @@ class PMA_PageSettings_Test extends PHPUnit_Framework_TestCase
*/
public function setUp()
{
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['server'] = 1;
}

Expand Down
Expand Up @@ -20,7 +20,7 @@
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Bdb_Test extends PHPUnit_Framework_TestCase
class BdbTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -36,6 +36,8 @@ class PMA_StorageEngine_Bdb_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Bdb('bdb');
}

Expand Down
Expand Up @@ -15,11 +15,11 @@


/**
* Tests for PMA_StorageEngine_binlog
* Tests for PMA\libraries\engines\Binlog
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Binlog_Test extends PHPUnit_Framework_TestCase
class BinlogTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -35,6 +35,8 @@ class PMA_StorageEngine_Binlog_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Binlog('binlog');
}

Expand Down
Expand Up @@ -15,11 +15,11 @@
require_once 'libraries/database_interface.inc.php';

/**
* Tests for PMA_StorageEngine_innodb
* Tests for PMA\libraries\engines\Innodb
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Innodb_Test extends PHPUnit_Framework_TestCase
class InnodbTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -35,6 +35,8 @@ class PMA_StorageEngine_Innodb_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Innodb('innodb');
}

Expand Down
Expand Up @@ -16,11 +16,11 @@


/**
* Tests for PMA_StorageEngine_memory
* Tests for PMA\libraries\engines\Memory
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Memory_Test extends PHPUnit_Framework_TestCase
class MemoryTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -36,6 +36,8 @@ class PMA_StorageEngine_Memory_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Memory('memory');
}

Expand Down
Expand Up @@ -18,7 +18,7 @@
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_MrgMyisam_Test extends PHPUnit_Framework_TestCase
class Mrg_MyisamTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -34,6 +34,8 @@ class PMA_StorageEngine_MrgMyisam_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Mrg_Myisam('mrg_myisam');
}

Expand Down
Expand Up @@ -15,11 +15,11 @@
require_once 'libraries/database_interface.inc.php';

/**
* Tests for PMA_StorageEngine_myisam
* Tests for PMA\libraries\engines\Myisam
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Myisam_Test extends PHPUnit_Framework_TestCase
class MyisamTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -35,6 +35,8 @@ class PMA_StorageEngine_Myisam_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Myisam('myisam');
}

Expand Down
Expand Up @@ -15,11 +15,11 @@
require_once 'libraries/database_interface.inc.php';

/**
* Tests for PMA_StorageEngine_ndbcluster
* Tests for PMA\libraries\engines\Ndbcluster
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Ndbcluster_Test extends PHPUnit_Framework_TestCase
class NdbclusterTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -35,6 +35,8 @@ class PMA_StorageEngine_Ndbcluster_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Ndbcluster('nbdcluster');
}

Expand Down
Expand Up @@ -17,11 +17,11 @@
require_once 'libraries/database_interface.inc.php';

/**
* Tests for PMA_StorageEngine_pbxt
* Tests for PMA\libraries\engines\Pbxt;
*
* @package PhpMyAdmin-test
*/
class PMA_StorageEngine_Pbxt_Test extends PHPUnit_Framework_TestCase
class PbxtTest extends PHPUnit_Framework_TestCase
{
/**
* @access protected
Expand All @@ -37,6 +37,8 @@ class PMA_StorageEngine_Pbxt_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['cfg']['DBG']['sql'] = false;
$GLOBALS['server'] = 0;
$this->object = new Pbxt('pbxt');
}

Expand Down

0 comments on commit 1043a36

Please sign in to comment.