Skip to content
Permalink
Browse files

Add afterDeleteCommit to test case

  • Loading branch information...
dakota committed Oct 29, 2015
1 parent 2099cad commit cf058497bd64c6f8515f1c8f513f57c7c5e53a58
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/TestCase/ORM/BehaviorTest.php
@@ -57,6 +57,13 @@ public function buildRules()
public function afterSaveCommit()
{
}
/**
* Test for event bindings.
*/
public function afterDeleteCommit()
{
}
}
/**
@@ -220,6 +227,7 @@ public function testImplementedEvents()
'Model.buildRules' => 'buildRules',
'Model.beforeRules' => 'beforeRules',
'Model.afterRules' => 'afterRules',
'Model.afterDeleteCommit' => 'afterDeleteCommit',
];
$this->assertEquals($expected, $behavior->implementedEvents());
}
@@ -254,6 +262,10 @@ public function testImplementedEventsWithPriority()
'priority' => 10,
'callable' => 'buildRules'
],
'Model.afterDeleteCommit' => [
'priority' => 10,
'callable' => 'afterDeleteCommit'
],
];
$this->assertEquals($expected, $behavior->implementedEvents());
}

0 comments on commit cf05849

Please sign in to comment.
You can’t perform that action at this time.