Commit b75df14c authored by Benni Mack's avatar Benni Mack
Browse files

[FOLLOWUP][TASK] Remove extended fluid core class CmsVariableProvider

Class CmsVariableProvider within EXT:fluid was removed but the tests
were kept, they are removed as well.

Resolves: #82229
Releases: master
Change-Id: I59812100589a7d4e63619896f78a63dadbdda657
Reviewed-on: https://review.typo3.org/54028

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent a6d2edbe
<?php
namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Variables;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider;
/**
* Test case
*/
class CmsVariableProviderTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
{
/**
* @test
*/
public function getByPathDelegatesToObjectAccess()
{
$instance = new CmsVariableProvider();
$instance->setSource(['foo' => 'bar']);
$this->assertEquals('bar', $instance->getByPath('foo'));
}
/**
* @test
*/
public function dynamicAccessWorks()
{
$instance = new CmsVariableProvider();
$instance->setSource(
[
'foo' => [
'hello' => 'world',
],
'key' => 'hello'
]
);
$this->assertEquals('world', $instance->getByPath('foo.{key}'));
}
}
......@@ -21,11 +21,11 @@ use TYPO3\CMS\Extbase\Mvc\Web\Request;
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
use TYPO3\CMS\Fluid\Core\Parser\PreProcessor\XmlnsNamespaceTemplatePreProcessor;
use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext;
use TYPO3\CMS\Fluid\Core\Variables\CmsVariableProvider;
use TYPO3\CMS\Fluid\View\StandaloneView;
use TYPO3\CMS\Fluid\View\TemplatePaths;
use TYPO3Fluid\Core\Compiler\TemplateCompiler;
use TYPO3Fluid\Fluid\Core\Parser\TemplateParser;
use TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider;
use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer;
/**
......@@ -89,7 +89,7 @@ class StandaloneViewTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
protected $mockTemplatePaths;
/**
* @var CmsVariableProvider|\PHPUnit_Framework_MockObject_MockObject
* @var StandardVariableProvider|\PHPUnit_Framework_MockObject_MockObject
*/
protected $mockVariableProvider;
......
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