Remove some useless comments
[phpmyadmin.git] / test / classes / Engines / NdbclusterTest.php
blobe72f4c64dbaca596f87a950424be77d40f095619
1 <?php
2 /**
3 * Tests for PMA_StorageEngine_ndbcluster
4 */
6 declare(strict_types=1);
8 namespace PhpMyAdmin\Tests\Engines;
10 use PhpMyAdmin\Engines\Ndbcluster;
11 use PhpMyAdmin\Tests\AbstractTestCase;
13 class NdbclusterTest extends AbstractTestCase
15 /** @var Ndbcluster */
16 protected $object;
18 /**
19 * Sets up the fixture, for example, opens a network connection.
20 * This method is called before a test is executed.
22 * @access protected
24 protected function setUp(): void
26 parent::setUp();
27 $GLOBALS['server'] = 0;
28 $this->object = new Ndbcluster('nbdcluster');
31 /**
32 * Tears down the fixture, for example, closes a network connection.
33 * This method is called after a test is executed.
35 * @access protected
37 protected function tearDown(): void
39 parent::tearDown();
40 unset($this->object);
43 /**
44 * Test for getVariables
46 public function testGetVariables(): void
48 $this->assertEquals(
49 $this->object->getVariables(),
51 'ndb_connectstring' => [],
56 /**
57 * Test for getVariablesLikePattern
59 public function testGetVariablesLikePattern(): void
61 $this->assertEquals(
62 $this->object->getVariablesLikePattern(),
63 'ndb\\_%'
67 /**
68 * Test for getMysqlHelpPage
70 public function testGetMysqlHelpPage(): void
72 $this->assertEquals(
73 $this->object->getMysqlHelpPage(),
74 'ndbcluster'