Skip to content

Commit

Permalink
Add afterDeleteCommit to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota committed Oct 29, 2015
1 parent 2099cad commit cf05849
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/TestCase/ORM/BehaviorTest.php
Expand Up @@ -57,6 +57,13 @@ public function buildRules()
public function afterSaveCommit()
{
}

/**
* Test for event bindings.
*/
public function afterDeleteCommit()
{
}
}

/**
Expand Down Expand Up @@ -220,6 +227,7 @@ public function testImplementedEvents()
'Model.buildRules' => 'buildRules',
'Model.beforeRules' => 'beforeRules',
'Model.afterRules' => 'afterRules',
'Model.afterDeleteCommit' => 'afterDeleteCommit',
];
$this->assertEquals($expected, $behavior->implementedEvents());
}
Expand Down Expand Up @@ -254,6 +262,10 @@ public function testImplementedEventsWithPriority()
'priority' => 10,
'callable' => 'buildRules'
],
'Model.afterDeleteCommit' => [
'priority' => 10,
'callable' => 'afterDeleteCommit'
],
];
$this->assertEquals($expected, $behavior->implementedEvents());
}
Expand Down

0 comments on commit cf05849

Please sign in to comment.