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

Refs #8012: remove unit test for sanitize class 'password' - there is no T3...

Refs #8012: remove unit test for sanitize class 'password' - there is no T3 installation on alfred16. The test can't succeed.
parent 664d685d
Pipeline #1753 passed with stage
in 2 minutes and 4 seconds
......@@ -468,12 +468,14 @@ class EvaluateTest extends AbstractDatabaseTest {
$this->store->setVar('a', ' hel;lo world ', STORE_FORM, true);
// $this->assertEquals('\20hel\3blo world\20', $eval->substitute('a:F:all:sL', $foundInStore));
# The password contains a dynamic salt - we can't force the salt and we can't force the hash
$this->store->setVar('a', 'password', STORE_FORM, true);
$result = $eval->substitute('a:F::p', $foundInStore);
$this->assertEquals(34, strlen($result));
$this->assertEquals('$P$', substr($result, 0, 3));
// The test needs a T3 installation to call the T3 password hash function - this is not available on alfred16
// The password contains a dynamic salt - we can't force the salt and we can't force the hash
// $this->store->setVar('a', 'password', STORE_FORM, true);
// $result = $eval->substitute('a:F::p', $foundInStore);
//
// $this->assertEquals(34, strlen($result));
// $this->assertEquals('$P$', substr($result, 0, 3));
}
......
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