Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
f0750f47
Commit
f0750f47
authored
Jan 19, 2016
by
Carsten Rose
Browse files
Store.php: fix problem in testSToreDifferentSanatizeClass()
parent
98425987
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/phpunit/StoreTest.php
View file @
f0750f47
...
...
@@ -143,12 +143,12 @@ return;
public
function
testStoreDifferentSanatizeClass
()
{
//default prio FSRD
$this
->
store
->
setVar
(
'
gender'
,
'fema
le'
,
STORE_RECORD
);
$this
->
assertEquals
(
'
fema
le'
,
$this
->
store
->
getVar
(
'
gender
'
),
"Retrieve '
gender
' from STORE_RECORD"
);
$this
->
store
->
setVar
(
'
fruit'
,
'app
le'
,
STORE_RECORD
);
$this
->
assertEquals
(
'
app
le'
,
$this
->
store
->
getVar
(
'
fruit
'
),
"Retrieve '
fruit
' from STORE_RECORD"
);
$this
->
store
->
setVar
(
'
gender'
,
'female2
'
,
STORE_FORM
);
$this
->
assertEquals
(
false
,
$this
->
store
->
getVar
(
'
gende
r'
),
"Retrieve '
gende
r' from STORE_
SIP
"
);
$this
->
assertEquals
(
'
female2
'
,
$this
->
store
->
getVar
(
'
gende
r'
,
''
,
SANATIZE_ALLOW_ALNUMX
),
"Retrieve '
gende
r' from STORE_
SIP
"
);
$this
->
store
->
setVar
(
'
color'
,
'green
'
,
STORE_FORM
);
$this
->
assertEquals
(
false
,
$this
->
store
->
getVar
(
'
colo
r'
),
"Retrieve '
colo
r' from STORE_
FORM
"
);
$this
->
assertEquals
(
'
green
'
,
$this
->
store
->
getVar
(
'
colo
r'
,
''
,
SANATIZE_ALLOW_ALNUMX
),
"Retrieve '
colo
r' from STORE_
FORM
"
);
}
public
function
testGetVarStoreZero
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment