[TASK] Use CLI and Composer Checks via Environment class 96/55996/20
authorBenni Mack <benni@typo3.org>
Sat, 3 Mar 2018 22:23:31 +0000 (23:23 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 1 Aug 2018 19:10:03 +0000 (21:10 +0200)
commit1d27b1231ff017f6c2d6188c77eb478a549e60b3
tree8fe9db9df3d908cee7d7ae7776866998554f5663
parent2f3577d7a54497aa7322eb664276e7ad2f7c32c1
[TASK] Use CLI and Composer Checks via Environment class

This patch removes the last occurrences of TYPO3_REQUESTTYPE_CLI
by using Environment::isCli().

A new "TYPO3/Testing" TYPO3_CONTEXT check ensures that the Frontend
Request is now always simulated in a non-CLI environment.

Used composer command:

  composer req typo3/testing-framework:~4.2.0 --dev

Resolves: #85712
Releases: master
Change-Id: I7472e86f2816fdabd025ad87014e64b25c3d1642
Reviewed-on: https://review.typo3.org/55996
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
composer.json
composer.lock
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/composer.json
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/Mvc/Cli/RequestHandler.php
typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php
typo3/sysext/extbase/Classes/Service/EnvironmentService.php