Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 14, 2016
1 parent 7ffb5c3 commit 5947c23
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
Expand Up @@ -109,6 +109,23 @@ public function setConnection($conn) {

}

/**
* 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
*
Expand Down Expand Up @@ -760,7 +777,7 @@ public function testCacheMethodHasherOverridden() {

$name = 'Model.fieldlbqndkezcoapfgirmjsh';
$actual = $testDb->cacheMethodHasher($name);
$expected = 'f4441bb8fcbe0944';
$expected = 'beb8b6469359285b7c2865dce0ef743feb16cb71';

$this->assertEquals($expected, $actual);
}
Expand Down

0 comments on commit 5947c23

Please sign in to comment.