Commit 13756198 authored by Nicole Cordes's avatar Nicole Cordes Committed by Andreas Fernandez
Browse files

[BUGFIX] Skip failing unit tests if preconditions not available

The unit tests for RedisSessionBackendTest rely on a class \Redis
which might not be available on all systems. Therefore the tests
should be skipped to not fail.

Resolves: #79758
Releases: master
Change-Id: Ie14911e7ba90eaffd32585c1c18d642996bbf74c

Tested-by: default avatarTYPO3com <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent c702f446
......@@ -23,6 +23,13 @@ use TYPO3\Components\TestingFramework\Core\Unit\UnitTestCase;
class RedisSessionBackendTest extends UnitTestCase
protected function setUp()
if (!class_exists(\Redis::class)) {
$this->markTestSkipped('Redis class needs to be available to test RedisSessionBackend');
* @test
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment