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
Reviewed-on: https://review.typo3.org/51636


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
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