TASK: Update InstantiationWithNewSniff tests

Relates: #44
This commit is contained in:
Daniel Siepmann 2017-05-09 11:42:32 +02:00
parent e2c972ed58
commit 2894784978
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 27 additions and 3 deletions

View file

@ -1,6 +1,6 @@
--- tests/Fixtures/Standards/Typo3Update/Sniffs/Classname/InstantiationWithNewSniff/InputFileForIssues.php --- tests/Fixtures/Standards/Typo3Update/Sniffs/Classname/InstantiationWithNewSniff/InputFileForIssues.php
+++ PHP_CodeSniffer +++ PHP_CodeSniffer
@@ -19,13 +19,13 @@ @@ -19,14 +19,14 @@
* 02110-1301, USA. * 02110-1301, USA.
*/ */
@ -20,3 +20,4 @@
+(new \TYPO3\CMS\Extbase\Command\HelpCommandController) +(new \TYPO3\CMS\Extbase\Command\HelpCommandController)
->doSomething() ->doSomething()
; ;

View file

@ -56,14 +56,32 @@
"severity": 5, "severity": 5,
"source": "Typo3Update.Classname.InstantiationWithNew.legacyClassname", "source": "Typo3Update.Classname.InstantiationWithNew.legacyClassname",
"type": "ERROR" "type": "ERROR"
},
{
"column": 5,
"fixable": false,
"line": 33,
"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.InstantiationWithNew.RemovedExtension.perm",
"type": "WARNING"
},
{
"column": 7,
"fixable": false,
"line": 34,
"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.InstantiationWithNew.RemovedExtension.perm",
"type": "WARNING"
} }
], ],
"warnings": 0 "warnings": 2
} }
}, },
"totals": { "totals": {
"errors": 6, "errors": 6,
"fixable": 6, "fixable": 6,
"warnings": 0 "warnings": 2
} }
} }

View file

@ -29,3 +29,8 @@ new Tx_Extbase_Command_HelpCommandController;
(new Tx_Extbase_Command_HelpCommandController) (new Tx_Extbase_Command_HelpCommandController)
->doSomething() ->doSomething()
; ;
new TYPO3\CMS\Perm\Controller\PermissionAjaxController;
(new \TYPO3\CMS\Perm\Controller\PermissionAjaxController)
->doSomething()
;