‪TYPO3CMS  10.4
AjaxWidgetContextHolderTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
21 
25 class ‪AjaxWidgetContextHolderTest extends UnitTestCase
26 {
31  {
33  $ajaxWidgetContextHolder = $this->getMockBuilder(AjaxWidgetContextHolder::class)
34  ->setMethods(['dummy'])
35  ->disableOriginalConstructor()
36  ->getMock();
37 
38  $this->expectException(WidgetContextNotFoundException::class);
39  $this->expectExceptionCode(1284793775);
40 
41  $ajaxWidgetContextHolder->get(42);
42  }
43 }
‪TYPO3\CMS\Fluid\Tests\Unit\Core\Widget\AjaxWidgetContextHolderTest
Definition: AjaxWidgetContextHolderTest.php:26
‪TYPO3\CMS\Fluid\Tests\Unit\Core\Widget\AjaxWidgetContextHolderTest\getThrowsExceptionIfWidgetContextIsNotFound
‪getThrowsExceptionIfWidgetContextIsNotFound()
Definition: AjaxWidgetContextHolderTest.php:30
‪TYPO3\CMS\Fluid\Core\Widget\Exception\WidgetContextNotFoundException
Definition: WidgetContextNotFoundException.php:26
‪TYPO3\CMS\Fluid\Tests\Unit\Core\Widget
Definition: AbstractWidgetControllerTest.php:16
‪TYPO3\CMS\Fluid\Core\Widget\AjaxWidgetContextHolder
Definition: AjaxWidgetContextHolder.php:33