[TASK] Switch skip condition with annotations in RedisSessionBackendTest 96/57796/3
authorMichael Kersten <michael.kersten@3m5.de>
Sat, 4 Aug 2018 07:28:40 +0000 (09:28 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 4 Aug 2018 08:42:27 +0000 (10:42 +0200)
Use requires annotation for skipping test if php extension redis
is not loaded.

Resolves: #85749
Releases: master
Change-Id: Ib5d642eae057676c34516c83ed3ab8c7c6ee02bd
Reviewed-on: https://review.typo3.org/57796
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/core/Tests/Functional/Session/Backend/RedisSessionBackendTest.php

index 77525ac..8fa48e3 100644 (file)
@@ -23,6 +23,8 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
 
 /**
  * Test case
+ *
+ * @requires extension redis
  */
 class RedisSessionBackendTest extends FunctionalTestCase
 {
@@ -48,9 +50,6 @@ class RedisSessionBackendTest extends FunctionalTestCase
     {
         parent::setUp();
 
-        if (!extension_loaded('redis')) {
-            $this->markTestSkipped('redis extension was not available');
-        }
         if (!getenv('typo3TestingRedisHost')) {
             $this->markTestSkipped('environment variable "typo3TestingRedisHost" must be set to run this test');
         }