TASK: Update IsACallSniff tests to reflect added removed extension

Relates: #44
This commit is contained in:
Daniel Siepmann 2017-05-09 11:31:15 +02:00
parent 3503a5b63a
commit 9b028d24e6
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 16 additions and 3 deletions

View file

@ -1,6 +1,6 @@
--- tests/Fixtures/Standards/Typo3Update/Sniffs/Classname/IsACallSniff/InputFileForIssues.php
+++ PHP_CodeSniffer
@@ -23,15 +23,15 @@
@@ -23,16 +23,16 @@
if (is_a($a, t3lib_Singleton::class)) {
// do something
}
@ -20,3 +20,4 @@
+if (is_a($a, "\\TYPO3\\CMS\\Core\\SingletonInterface")) {
// do something
}
if (is_a($a, "\\TYPO3\CMS\Perm\Controller\PermissionAjaxController")) {

View file

@ -38,14 +38,23 @@
"severity": 5,
"source": "Typo3Update.Classname.IsACall.legacyClassname",
"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": {
"errors": 4,
"fixable": 4,
"warnings": 0
"warnings": 1
}
}

View file

@ -35,3 +35,6 @@ if (is_a($a, "t3lib_Singleton")) {
if (is_a($a, "\\t3lib_Singleton")) {
// do something
}
if (is_a($a, "\\TYPO3\CMS\Perm\Controller\PermissionAjaxController")) {
// do something
}