TASK: Update IsACallSniff tests to reflect added removed extension
Relates: #44
This commit is contained in:
parent
3503a5b63a
commit
9b028d24e6
3 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- tests/Fixtures/Standards/Typo3Update/Sniffs/Classname/IsACallSniff/InputFileForIssues.php
|
--- tests/Fixtures/Standards/Typo3Update/Sniffs/Classname/IsACallSniff/InputFileForIssues.php
|
||||||
+++ PHP_CodeSniffer
|
+++ PHP_CodeSniffer
|
||||||
@@ -23,15 +23,15 @@
|
@@ -23,16 +23,16 @@
|
||||||
if (is_a($a, t3lib_Singleton::class)) {
|
if (is_a($a, t3lib_Singleton::class)) {
|
||||||
// do something
|
// do something
|
||||||
}
|
}
|
||||||
|
@ -20,3 +20,4 @@
|
||||||
+if (is_a($a, "\\TYPO3\\CMS\\Core\\SingletonInterface")) {
|
+if (is_a($a, "\\TYPO3\\CMS\\Core\\SingletonInterface")) {
|
||||||
// do something
|
// do something
|
||||||
}
|
}
|
||||||
|
if (is_a($a, "\\TYPO3\CMS\Perm\Controller\PermissionAjaxController")) {
|
||||||
|
|
|
@ -38,14 +38,23 @@
|
||||||
"severity": 5,
|
"severity": 5,
|
||||||
"source": "Typo3Update.Classname.IsACall.legacyClassname",
|
"source": "Typo3Update.Classname.IsACall.legacyClassname",
|
||||||
"type": "ERROR"
|
"type": "ERROR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"column": 14,
|
||||||
|
"fixable": false,
|
||||||
|
"line": 38,
|
||||||
|
"message": "Calls to removed code are not allowed; found perm. Removed in 7.0. The logic is moved into EXT:beuser. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-62339-MoveExtPermIntoExtBeuser.html",
|
||||||
|
"severity": 5,
|
||||||
|
"source": "Typo3Update.Classname.IsACall.RemovedClass.perm",
|
||||||
|
"type": "WARNING"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"warnings": 0
|
"warnings": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"totals": {
|
"totals": {
|
||||||
"errors": 4,
|
"errors": 4,
|
||||||
"fixable": 4,
|
"fixable": 4,
|
||||||
"warnings": 0
|
"warnings": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,3 +35,6 @@ if (is_a($a, "t3lib_Singleton")) {
|
||||||
if (is_a($a, "\\t3lib_Singleton")) {
|
if (is_a($a, "\\t3lib_Singleton")) {
|
||||||
// do something
|
// do something
|
||||||
}
|
}
|
||||||
|
if (is_a($a, "\\TYPO3\CMS\Perm\Controller\PermissionAjaxController")) {
|
||||||
|
// do something
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue