mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix failing test
This commit is contained in:
parent
7ffb5c3600
commit
5947c2346b
1 changed files with 18 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue