From 7c5d95d0e0a0cd40a6f9fbcc0fa56bbf2d804627 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 13 Apr 2017 15:30:42 +0200 Subject: [PATCH] TASK: Update test * Make sure test is running again with new additions of cObjects. * Also fix description containing dot at the end. Relates: #54 --- .../Configuration/Removed/TypoScript/7.1.yaml | 10 ++-- .../Removed/TypoScriptSniff/Expected.json | 57 +++++++++++++++++-- 2 files changed, 56 insertions(+), 11 deletions(-) diff --git a/src/Standards/Typo3Update/Configuration/Removed/TypoScript/7.1.yaml b/src/Standards/Typo3Update/Configuration/Removed/TypoScript/7.1.yaml index 183d76b..4433df2 100644 --- a/src/Standards/Typo3Update/Configuration/Removed/TypoScript/7.1.yaml +++ b/src/Standards/Typo3Update/Configuration/Removed/TypoScript/7.1.yaml @@ -10,17 +10,17 @@ replacement: 'All files will always have their original filename fully prepended when stored in the folder typo3temp/GB/. Just remove the setting' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-62886-RemoveMeaningfulTempFilePrefix.html' new CLEARGIF: - replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.' + replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html' new COLUMNS: - replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.' + replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html' new CTABLE: - replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.' + replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html' new OTABLE: - replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.' + replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html' new HRULER: - replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.' + replacement: 'Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content' docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html' diff --git a/tests/Fixtures/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff/Expected.json b/tests/Fixtures/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff/Expected.json index e40c7dd..ff6e6bd 100644 --- a/tests/Fixtures/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff/Expected.json +++ b/tests/Fixtures/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff/Expected.json @@ -9,7 +9,7 @@ "line": 2, "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", + "source": "Typo3Update.Removed.TypoScript.styles-insertContent", "type": "WARNING" }, { @@ -18,7 +18,7 @@ "line": 3, "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", + "source": "Typo3Update.Removed.TypoScript.styles-insertContent", "type": "WARNING" }, { @@ -27,7 +27,7 @@ "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", + "source": "Typo3Update.Removed.TypoScript.styles-insertContent", "type": "WARNING" }, { @@ -36,16 +36,61 @@ "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", + "source": "Typo3Update.Removed.TypoScript.mod-web_list-alternateBgColors", + "type": "WARNING" + }, + { + "column": 10, + "fixable": false, + "line": 26, + "message": "Legacy calls are not allowed; found CLEARGIF. Removed in 7.1. Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html", + "severity": 5, + "source": "Typo3Update.Removed.TypoScript.CLEARGIF", + "type": "WARNING" + }, + { + "column": 10, + "fixable": false, + "line": 27, + "message": "Legacy calls are not allowed; found COLUMNS. Removed in 7.1. Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html", + "severity": 5, + "source": "Typo3Update.Removed.TypoScript.COLUMNS", + "type": "WARNING" + }, + { + "column": 10, + "fixable": false, + "line": 28, + "message": "Legacy calls are not allowed; found CTABLE. Removed in 7.1. Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html", + "severity": 5, + "source": "Typo3Update.Removed.TypoScript.CTABLE", + "type": "WARNING" + }, + { + "column": 10, + "fixable": false, + "line": 29, + "message": "Legacy calls are not allowed; found OTABLE. Removed in 7.1. Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html", + "severity": 5, + "source": "Typo3Update.Removed.TypoScript.OTABLE", + "type": "WARNING" + }, + { + "column": 10, + "fixable": false, + "line": 30, + "message": "Legacy calls are not allowed; found HRULER. Removed in 7.1. Any installation should migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.1/Breaking-64639-RemovedContentObjects.html", + "severity": 5, + "source": "Typo3Update.Removed.TypoScript.HRULER", "type": "WARNING" } ], - "warnings": 4 + "warnings": 9 } }, "totals": { "errors": 0, "fixable": 0, - "warnings": 4 + "warnings": 9 } }