TYPO3 CMS  TYPO3_6-2
AbstractElementViewTest.php
Go to the documentation of this file.
1 <?php
3 
23 
27  public function getInputValueDoesNotHtmlSpecialCharBr() {
28  $model = $this->getMock('TYPO3\\CMS\\Form\\Domain\\Model\\Element\\AbstractElement');
29  $model
30  ->expects($this->once())
31  ->method('getAttributeValue')
32  ->with('value')
33  ->will($this->returnValue('a&' . LF . 'b'));
34 
36  $fixture = $this->getMock(
37  'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\AbstractElementView',
38  array('dummy'),
39  array($model)
40  );
41 
42  $this->assertSame('a&amp;<br />' . LF . 'b', $fixture->getInputValue());
43  }
44 }