object = $this->getMockForAbstractClass( NodeDatabaseChild::class, ['child'] ); } /** * Tears down the fixture. * * @access protected */ protected function tearDown(): void { parent::tearDown(); unset($this->object); } /** * Tests getHtmlForControlButtons() method */ public function testGetHtmlForControlButtons(): void { $parent = NodeFactory::getInstance('NodeDatabase', 'parent'); $parent->addChild($this->object); $this->object->expects($this->once()) ->method('getItemType') ->will($this->returnValue('itemType')); $html = $this->object->getHtmlForControlButtons(); $this->assertStringStartsWith( '', $html ); $this->assertStringEndsWith( '', $html ); $this->assertStringContainsString( '', $html ); } }