Commit f0750f47 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Store.php: fix problem in testSToreDifferentSanatizeClass()

parent 98425987
......@@ -143,12 +143,12 @@ return;
public function testStoreDifferentSanatizeClass() {
//default prio FSRD
$this->store->setVar('gender', 'female', STORE_RECORD);
$this->assertEquals('female', $this->store->getVar('gender'), "Retrieve 'gender' from STORE_RECORD");
$this->store->setVar('fruit', 'apple', STORE_RECORD);
$this->assertEquals('apple', $this->store->getVar('fruit'), "Retrieve 'fruit' from STORE_RECORD");
$this->store->setVar('gender', 'female2', STORE_FORM);
$this->assertEquals(false, $this->store->getVar('gender'), "Retrieve 'gender' from STORE_SIP");
$this->assertEquals('female2', $this->store->getVar('gender', '', SANATIZE_ALLOW_ALNUMX), "Retrieve 'gender' from STORE_SIP");
$this->store->setVar('color', 'green', STORE_FORM);
$this->assertEquals(false, $this->store->getVar('color'), "Retrieve 'color' from STORE_FORM");
$this->assertEquals('green', $this->store->getVar('color', '', SANATIZE_ALLOW_ALNUMX), "Retrieve 'color' from STORE_FORM");
}
public function testGetVarStoreZero() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment