[FOLLOWUP][TASK] Remove extended fluid core class CmsVariableProvider 43/54043/2
authorBenni Mack <benni@typo3.org>
Fri, 8 Sep 2017 15:12:06 +0000 (17:12 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 8 Sep 2017 22:17:28 +0000 (00:17 +0200)
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/54043
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/fluid/Tests/Unit/Core/Variables/CmsVariableProviderTest.php [deleted file]
typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php

diff --git a/typo3/sysext/fluid/Tests/Unit/Core/Variables/CmsVariableProviderTest.php b/typo3/sysext/fluid/Tests/Unit/Core/Variables/CmsVariableProviderTest.php
deleted file mode 100644 (file)
index 1e453cf..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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}'));
-    }
-}
index 771ed7a..bc02f00 100644 (file)
@@ -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;