Fix failing test

This commit is contained in:
Mischa ter Smitten 2016-11-14 10:27:51 +01:00
parent 7ffb5c3600
commit 5947c2346b

View file

@ -109,6 +109,23 @@ class DboSecondTestSource extends DboSource {
} }
/**
* DboThirdTestSource
*
* @package Cake.Test.Case.Model.Datasource
*/
class DboThirdTestSource extends DboSource {
public function connect($config = array()) {
$this->connected = true;
}
public function cacheMethodHasher($value) {
return hash('sha1', $value);
}
}
/** /**
* DboSourceTest class * DboSourceTest class
* *
@ -760,7 +777,7 @@ class DboSourceTest extends CakeTestCase {
$name = 'Model.fieldlbqndkezcoapfgirmjsh'; $name = 'Model.fieldlbqndkezcoapfgirmjsh';
$actual = $testDb->cacheMethodHasher($name); $actual = $testDb->cacheMethodHasher($name);
$expected = 'f4441bb8fcbe0944'; $expected = 'beb8b6469359285b7c2865dce0ef743feb16cb71';
$this->assertEquals($expected, $actual); $this->assertEquals($expected, $actual);
} }