TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
AbstractElementViewTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Tests\Unit\View\Mail\Html\Element
;
3
22
class
AbstractElementViewTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
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&<br />'
. LF .
'b'
, $fixture->getInputValue());
43
}
44
}
TYPO3\CMS\Form\Tests\Unit\View\Mail\Html\Element\AbstractElementViewTest
Definition:
AbstractElementViewTest.php:22
TYPO3\CMS\Form\Tests\Unit\View\Mail\Html\Element
Definition:
AbstractElementViewTest.php:2
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
typo3
sysext
form
Tests
Unit
View
Mail
Html
Element
AbstractElementViewTest.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13