phpmyadmin/test/classes/Engines/NdbclusterTest.php
Maurício Meneghini Fauth 285e38e931 Fix some PSR-2 coding standard errors
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-30 09:07:56 -03:00

93 lines
1.8 KiB
PHP

<?php
/**
* Tests for PMA_StorageEngine_ndbcluster
*
* @package PhpMyAdmin-test
*/
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Engines;
use PhpMyAdmin\Engines\Ndbcluster;
use PhpMyAdmin\Tests\PmaTestCase;
/**
* Tests for PhpMyAdmin\Engines\Ndbcluster
*
* @package PhpMyAdmin-test
*/
class NdbclusterTest extends PmaTestCase
{
/**
* @access protected
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @access protected
* @return void
*/
protected function setUp()
{
$GLOBALS['server'] = 0;
$this->object = new Ndbcluster('nbdcluster');
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
* @return void
*/
protected function tearDown()
{
unset($this->object);
}
/**
* Test for getVariables
*
* @return void
*/
public function testGetVariables()
{
$this->assertEquals(
$this->object->getVariables(),
[
'ndb_connectstring' => [
],
]
);
}
/**
* Test for getVariablesLikePattern
*
* @return void
*/
public function testGetVariablesLikePattern()
{
$this->assertEquals(
$this->object->getVariablesLikePattern(),
'ndb\\_%'
);
}
/**
* Test for getMysqlHelpPage
*
* @return void
*/
public function testGetMysqlHelpPage()
{
$this->assertEquals(
$this->object->getMysqlHelpPage(),
'ndbcluster'
);
}
}