FEATURE: Add second TypoScript check

* Extend test to show what's possible and covered and what is not
  covered yet.

Relates: #54
This commit is contained in:
Daniel Siepmann 2017-04-13 14:20:36 +02:00
parent b394cff3d2
commit e1b3f31c78
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 38 additions and 2 deletions

View file

@ -3,3 +3,6 @@
styles.insertContent:
replacement: 'Either remove usage of styles.insertContent or add a snippet at an early point in TypoScript for backwards compatibility'
docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-42543-DefaultTypoScriptRemoved.html'
mod.web_list.alternateBgColors:
replacement: 'Removed without substitution'
docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-53658-RemoveAlternateBgColorsOption.html'

View file

@ -20,14 +20,32 @@
"severity": 5,
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.styles-insertContent",
"type": "WARNING"
},
{
"column": 1,
"fixable": false,
"line": 6,
"message": "Legacy calls are not allowed; found styles.insertContent. Removed in 7.0. Either remove usage of styles.insertContent or add a snippet at an early point in TypoScript for backwards compatibility. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-42543-DefaultTypoScriptRemoved.html",
"severity": 5,
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.styles-insertContent",
"type": "WARNING"
},
{
"column": 1,
"fixable": false,
"line": 13,
"message": "Legacy calls are not allowed; found mod.web_list.alternateBgColors. Removed in 7.0. Removed without substitution. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-53658-RemoveAlternateBgColorsOption.html",
"severity": 5,
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.mod-web_list-alternateBgColors",
"type": "WARNING"
}
],
"warnings": 2
"warnings": 4
}
},
"totals": {
"errors": 0,
"fixable": 0,
"warnings": 2
"warnings": 4
}
}

View file

@ -2,3 +2,18 @@ page {
10 < styles.insertContent
10 =< styles.insertContent
}
styles.insertContent {
select {
where = colPos=1
}
}
# already covered
mod.web_list.alternateBgColors = 1
# Not covered yet
mod {
web_list {
alternateBgColors = 1
}
}