45 $contentObjectRendererProphecy = $this->prophesize(
'TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
46 GeneralUtility::addInstance(
'TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer', $contentObjectRendererProphecy->reveal());
47 $localisationProphecy = $this->prophesize(
'TYPO3\\CMS\\Form\\Localization');
49 $requestProphecy = $this->prophesize(
'TYPO3\\CMS\\Form\\Request');
52 $this->elementId = uniqid(
'elementId_', TRUE);
68 $this->assertFalse($this->subject->hasAttribute(
'anAttribute'));
75 $this->assertEmpty($this->subject->getValue(
'anAttribute'));
82 $attributeProphecy = $this->prophesize(
'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AbstractAttribute');
83 $attributeProphecy->getValue()->shouldBeCalled()->willReturn(
'aValue');
85 $this->subject->setAttribute(
'anAttribute', $attributeProphecy->reveal());
86 $this->assertSame(
'aValue', $this->subject->getValue(
'anAttribute'));
static getSingletonInstances()
static setSingletonInstance($className, \TYPO3\CMS\Core\SingletonInterface $instance)
static addInstance($className, $instance)
getValueReturnsEmptyIfAttributeIsNotSet()
static resetSingletonInstances(array $newSingletonInstances)
hasAttributeReturnsFalseForMissingAttribute()
getValueReturnsValueIfAttributeIsSet()