object = $this->getMockForAbstractClass( 'PhpMyAdmin\StorageEngine', ['dummy'] ); } /** * 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(): void { unset($this->object); } /** * Test for getStorageEngines * * @return void */ public function testGetStorageEngines() { $this->assertEquals( [ 'dummy' => [ 'Engine' => 'dummy', 'Support' => 'YES', 'Comment' => 'dummy comment', ], 'dummy2' => [ 'Engine' => 'dummy2', 'Support' => 'NO', 'Comment' => 'dummy2 comment', ], 'FEDERATED' => [ 'Engine' => 'FEDERATED', 'Support' => 'NO', 'Comment' => 'Federated MySQL storage engine', ], 'Pbxt' => [ 'Engine' => 'Pbxt', 'Support' => 'NO', 'Comment' => 'Pbxt storage engine', ], ], $this->object->getStorageEngines() ); } /** * Test for getHtmlSelect * * @return void * * @group medium */ public function testGetHtmlSelect() { $html = $this->object->getHtmlSelect(); $this->assertStringContainsString( '