|
|
@@ -142,7 +142,7 @@ class ResetBehaviorTest extends TestCase {
|
|
|
*/
|
|
|
public function testResetWithStaticCallback() {
|
|
|
$this->Table->removeBehavior('Reset');
|
|
|
- $this->Table->addBehavior('Tools.Reset', ['callback' => 'TestApp\Model\Table\ResetCommentsTable::customStaticCallback']);
|
|
|
+ $this->Table->addBehavior('Tools.Reset', ['callback' => 'App\Model\Table\ResetCommentsTable::customStaticCallback']);
|
|
|
|
|
|
$x = $this->Table->find('first', ['conditions' => ['id' => 6]]);
|
|
|
$this->assertEquals('Second Comment for Second Article', $x['comment']);
|
|
|
@@ -165,7 +165,7 @@ class ResetBehaviorTest extends TestCase {
|
|
|
$this->Table->addBehavior('Tools.Reset', [
|
|
|
'fields' => ['id'],
|
|
|
'updateFields' => ['comment'],
|
|
|
- 'callback' => 'TestApp\Model\Table\ResetCommentsTable::fieldsCallback']);
|
|
|
+ 'callback' => 'App\Model\Table\ResetCommentsTable::fieldsCallback']);
|
|
|
|
|
|
$x = $this->Table->find('first', ['conditions' => ['id' => 6]]);
|
|
|
$this->assertEquals('Second Comment for Second Article', $x['comment']);
|
|
|
@@ -188,7 +188,7 @@ class ResetBehaviorTest extends TestCase {
|
|
|
$this->Table->addBehavior('Tools.Reset', [
|
|
|
'fields' => ['id'],
|
|
|
'updateFields' => ['id'],
|
|
|
- 'callback' => 'TestApp\Model\Table\ResetCommentsTable::fieldsCallbackAuto']);
|
|
|
+ 'callback' => 'App\Model\Table\ResetCommentsTable::fieldsCallbackAuto']);
|
|
|
|
|
|
$x = $this->Table->find('first', ['conditions' => ['id' => 6]]);
|
|
|
$this->assertEquals('Second Comment for Second Article', $x['comment']);
|