/**
  * @test
  */
 public function extractNodeTypesAndSupertypesWorks()
 {
     /* @var $nodeTypeManager NodeTypeManager */
     $nodeTypeManager = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Service\\NodeTypeManager');
     $nodeType = $nodeTypeManager->getNodeType('TYPO3.TYPO3CR.Search.Test:Type3');
     $expected = array('TYPO3.TYPO3CR.Search.Test:Type3', 'TYPO3.TYPO3CR.Search.Test:Type1', 'TYPO3.TYPO3CR.Search.Test:BaseType', 'TYPO3.TYPO3CR.Search.Test:Type2');
     $actual = $this->helper->extractNodeTypeNamesAndSupertypes($nodeType);
     $this->assertSame($expected, $actual);
 }
 /**
  * @test
  */
 public function extractHtmlTagsWorks()
 {
     $input = 'So.. I want to know... <h2>How do you feel?</h2>This is <p><b>some</b>Text.<h2>I Feel so good</h2>... so good...</p>';
     $expected = array('text' => 'So.. I want to know... This is some Text. ... so good... ', 'h2' => ' How do you feel? I Feel so good ');
     $this->assertSame($expected, $this->helper->extractHtmlTags($input));
 }