From cf058497bd64c6f8515f1c8f513f57c7c5e53a58 Mon Sep 17 00:00:00 2001 From: Walther Lalk Date: Thu, 29 Oct 2015 12:22:09 +0200 Subject: [PATCH] Add afterDeleteCommit to test case --- tests/TestCase/ORM/BehaviorTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/TestCase/ORM/BehaviorTest.php b/tests/TestCase/ORM/BehaviorTest.php index b363a0189d1..300526274c1 100644 --- a/tests/TestCase/ORM/BehaviorTest.php +++ b/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()); }