49 'simple meta' => array(
51 'author' =>
'Markus Klein',
55 '<meta name="generator" content="TYPO3 CMS">',
56 '<meta name="author" content="Markus Klein">',
59 'simple meta xhtml' => array(
61 'author' =>
'Markus Klein',
65 '<meta name="generator" content="TYPO3 CMS" />',
66 '<meta name="author" content="Markus Klein" />',
69 'meta with nested stdWrap' => array(
71 'author' =>
'Markus ',
72 'author.' => array(
'stdWrap.' => array(
'wrap' =>
'|Klein'))
76 '<meta name="generator" content="TYPO3 CMS">',
77 '<meta name="author" content="Markus Klein">',
80 'httpEquivalent meta' => array(
82 'X-UA-Compatible' =>
'IE=edge,chrome=1',
83 'X-UA-Compatible.' => array(
'httpEquivalent' => 1)
87 '<meta name="generator" content="TYPO3 CMS">',
88 '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">' 91 'httpEquivalent meta xhtml' => array(
93 'X-UA-Compatible' =>
'IE=edge,chrome=1',
94 'X-UA-Compatible.' => array(
'httpEquivalent' => 1)
98 '<meta name="generator" content="TYPO3 CMS" />',
99 '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />' 102 'refresh meta' => array(
108 '<meta name="generator" content="TYPO3 CMS">',
109 '<meta http-equiv="refresh" content="10">',
112 'meta with dot' => array(
114 'DC.author' =>
'Markus Klein',
118 '<meta name="generator" content="TYPO3 CMS">',
119 '<meta name="DC.author" content="Markus Klein">',
122 'meta with colon' => array(
124 'OG:title' =>
'Magic Tests',
128 '<meta name="generator" content="TYPO3 CMS">',
129 '<meta name="OG:title" content="Magic Tests">',
144 $result = $this->pageGeneratorFixture->callGenerateMetaTagHtml($typoScript, $xhtml, $this->contentObjectRenderer);
145 $this->assertSame($expectedTags,
$result);
153 'one simple search word' => array(
158 'one simple search word with standalone words' => array(
161 '[[:space:]]test[[:space:]]',
163 'two simple search words' => array(
164 array(
'test',
'test2'),
168 'two simple search words with standalone words' => array(
169 array(
'test',
'test2'),
171 '[[:space:]]test[[:space:]]|[[:space:]]test2[[:space:]]',
173 'word with regex chars' => array(
174 array(
'A \\ word with / a bunch of [] regex () chars .*'),
176 'A word with \\/ a bunch of \\[\\] regex \\(\\) chars \\.\\*',
191 $_GET[
'sword_list'] = $searchWordGetParameters;
194 if ($enableStandaloneSearchWords) {
195 $GLOBALS[
'TSFE']->config = array(
'config' => array(
'sword_standAlone' => 1));
198 $this->pageGeneratorFixture->callInitializeSearchWordDataInTsfe();
199 $this->assertEquals(
$GLOBALS[
'TSFE']->sWordRegEx, $expectedRegex);
generateMetaTagHtmlGeneratesCorrectTags(array $typoScript, $xhtml, array $expectedTags)
initializeSearchWordDataInTsfeBuildsCorrectRegex(array $searchWordGetParameters, $enableStandaloneSearchWords, $expectedRegex)
initializeSearchWordDataInTsfeBuildsCorrectRegexDataProvider()
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
generateMetaTagHtmlGeneratesCorrectTagsDataProvider()