2 namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Widget
;
5 * This file is part of the TYPO3 CMS project.
7 * It is backported from the TYPO3 Flow package "TYPO3.Fluid".
9 * It is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License, either version 2
11 * of the License, or any later version.
13 * For the full copyright and license information, please read the
14 * LICENSE.txt file that was distributed with this source code.
16 * The TYPO3 project - inspiring people to share!
22 class AjaxWidgetContextHolderTest
extends \TYPO3\CMS\Core\Tests\UnitTestCase
{
26 * @expectedException \TYPO3\CMS\Fluid\Core\Widget\Exception\WidgetContextNotFoundException
28 public function getThrowsExceptionIfWidgetContextIsNotFound() {
29 /** @var \TYPO3\CMS\Fluid\Core\Widget\AjaxWidgetContextHolder $ajaxWidgetContextHolder */
30 $ajaxWidgetContextHolder = $this->getMock('TYPO3\\CMS\\Fluid\\Core\\Widget\\AjaxWidgetContextHolder', array('dummy'), array(), '', FALSE
);
31 $ajaxWidgetContextHolder->get(42);