‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest:

Public Member Functions

 transformValue (object|array $object, array $configuration, array|string $expected, string $description)
 
 recursive (object|array $object, array $configuration, object|array $expected, string $variableToRender, string $description)
 
 transformValueWithObjectIdentifierExposure (object $object, array $configuration, array $expected, string $dummyIdentifier, string $description)
 
 viewExposesClassNameFullyIfConfiguredSo (?int $exposeClassNameSetting, string $className, string $namespace, array $expected)
 
 renderReturnsJsonRepresentationOfAssignedObject ()
 
 renderReturnsJsonRepresentationOfAssignedArray ()
 
 renderReturnsJsonRepresentationOfAssignedSimpleValue ()
 
 renderKeepsUtf8CharactersUnescaped ()
 
 renderEscapesEscapeCharacters (string $character)
 
 renderReturnsNullIfNameOfAssignedVariableIsNotEqualToValue ()
 
 renderOnlyRendersVariableWithTheNameValue ()
 
 setVariablesToRenderOverridesValueToRender ()
 
 renderRendersMultipleValuesIfTheyAreSpecifiedAsVariablesToRender ()
 
 renderCanRenderMultipleComplexObjects ()
 
 renderCanRenderPlainArray ()
 
 renderCanRenderPlainArrayWithNumericKeys ()
 
 descendAllKeepsArrayIndexes ()
 

Static Public Member Functions

static transformValueDataProvider ()
 
static recursiveDataProvider ()
 
static transformValueWithObjectIdentifierExposureDataProvider ()
 
static viewExposesClassNameFullyIfConfiguredSoDataProvider ()
 
static escapeCharacterDataProvider ()
 

Protected Attributes

bool $resetSingletonInstances = true
 

Detailed Description

Definition at line 30 of file JsonViewTest.php.

Member Function Documentation

◆ descendAllKeepsArrayIndexes()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::descendAllKeepsArrayIndexes ( )

Definition at line 631 of file JsonViewTest.php.

◆ escapeCharacterDataProvider()

static TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::escapeCharacterDataProvider ( )
static

Definition at line 491 of file JsonViewTest.php.

◆ recursive()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::recursive ( object|array  $object,
array  $configuration,
object|array  $expected,
string  $variableToRender,
string  $description 
)

Definition at line 323 of file JsonViewTest.php.

◆ recursiveDataProvider()

static TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::recursiveDataProvider ( )
static

Definition at line 168 of file JsonViewTest.php.

References $output.

◆ renderCanRenderMultipleComplexObjects()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderCanRenderMultipleComplexObjects ( )

Definition at line 566 of file JsonViewTest.php.

◆ renderCanRenderPlainArray()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderCanRenderPlainArray ( )

Definition at line 585 of file JsonViewTest.php.

◆ renderCanRenderPlainArrayWithNumericKeys()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderCanRenderPlainArrayWithNumericKeys ( )

Definition at line 605 of file JsonViewTest.php.

◆ renderEscapesEscapeCharacters()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderEscapesEscapeCharacters ( string  $character)

Definition at line 501 of file JsonViewTest.php.

◆ renderKeepsUtf8CharactersUnescaped()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderKeepsUtf8CharactersUnescaped ( )

Definition at line 479 of file JsonViewTest.php.

◆ renderOnlyRendersVariableWithTheNameValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderOnlyRendersVariableWithTheNameValue ( )

Definition at line 525 of file JsonViewTest.php.

◆ renderRendersMultipleValuesIfTheyAreSpecifiedAsVariablesToRender()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderRendersMultipleValuesIfTheyAreSpecifiedAsVariablesToRender ( )

Definition at line 551 of file JsonViewTest.php.

◆ renderReturnsJsonRepresentationOfAssignedArray()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderReturnsJsonRepresentationOfAssignedArray ( )

Definition at line 455 of file JsonViewTest.php.

◆ renderReturnsJsonRepresentationOfAssignedObject()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderReturnsJsonRepresentationOfAssignedObject ( )

Definition at line 442 of file JsonViewTest.php.

◆ renderReturnsJsonRepresentationOfAssignedSimpleValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderReturnsJsonRepresentationOfAssignedSimpleValue ( )

Definition at line 467 of file JsonViewTest.php.

◆ renderReturnsNullIfNameOfAssignedVariableIsNotEqualToValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::renderReturnsNullIfNameOfAssignedVariableIsNotEqualToValue ( )

Definition at line 513 of file JsonViewTest.php.

◆ setVariablesToRenderOverridesValueToRender()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::setVariablesToRenderOverridesValueToRender ( )

Definition at line 538 of file JsonViewTest.php.

◆ transformValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::transformValue ( object|array  $object,
array  $configuration,
array|string  $expected,
string  $description 
)

Definition at line 157 of file JsonViewTest.php.

◆ transformValueDataProvider()

static TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::transformValueDataProvider ( )
static

Definition at line 34 of file JsonViewTest.php.

References $output.

◆ transformValueWithObjectIdentifierExposure()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::transformValueWithObjectIdentifierExposure ( object  $object,
array  $configuration,
array  $expected,
string  $dummyIdentifier,
string  $description 
)

Definition at line 364 of file JsonViewTest.php.

◆ transformValueWithObjectIdentifierExposureDataProvider()

static TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::transformValueWithObjectIdentifierExposureDataProvider ( )
static

Definition at line 336 of file JsonViewTest.php.

References $output.

◆ viewExposesClassNameFullyIfConfiguredSo()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::viewExposesClassNameFullyIfConfiguredSo ( ?int  $exposeClassNameSetting,
string  $className,
string  $namespace,
array  $expected 
)

Definition at line 413 of file JsonViewTest.php.

◆ viewExposesClassNameFullyIfConfiguredSoDataProvider()

static TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::viewExposesClassNameFullyIfConfiguredSoDataProvider ( )
static

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Extbase\Tests\Unit\Mvc\View\JsonViewTest::$resetSingletonInstances = true
protected

Definition at line 32 of file JsonViewTest.php.