1
0
Fork 0

Correct rule hash test

pull/4234/head
Nils Adermann 2015-07-08 19:36:13 +02:00
parent c7e1f49e78
commit b869fa9662
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class RuleTest extends TestCase
{
$rule = new Rule(array(123), 'job1', null);
$this->assertEquals(substr(md5('123'), 0, 5), $rule->getHash());
$hash = unpack('ihash', md5('123', true));
$this->assertEquals($hash['hash'], $rule->getHash());
}
public function testSetAndGetId()