diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-10 15:03:42 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-10 15:03:42 -0500 |
commit | b1e484fad6c6d77ea23c391212bd705805f2284e (patch) | |
tree | a4bee4516c8c66bf8e6b5ea1df582816f11edcda | |
parent | b470b6726074b3f6b773bf1a28569c39a4cb7db1 (diff) |
Change events for project modification subscriber
-rw-r--r-- | app/Subscriber/ProjectModificationDateSubscriber.php | 9 | ||||
-rw-r--r-- | tests/units/ProjectTest.php | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/app/Subscriber/ProjectModificationDateSubscriber.php b/app/Subscriber/ProjectModificationDateSubscriber.php index cd83f370..4c5380ff 100644 --- a/app/Subscriber/ProjectModificationDateSubscriber.php +++ b/app/Subscriber/ProjectModificationDateSubscriber.php @@ -4,7 +4,6 @@ namespace Subscriber; use Event\GenericEvent; use Model\Task; -use Integration\GithubWebhook; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class ProjectModificationDateSubscriber extends Base implements EventSubscriberInterface @@ -15,17 +14,11 @@ class ProjectModificationDateSubscriber extends Base implements EventSubscriberI Task::EVENT_CREATE_UPDATE => array('execute', 0), Task::EVENT_CLOSE => array('execute', 0), Task::EVENT_OPEN => array('execute', 0), + Task::EVENT_MOVE_SWIMLANE => array('execute', 0), Task::EVENT_MOVE_COLUMN => array('execute', 0), Task::EVENT_MOVE_POSITION => array('execute', 0), Task::EVENT_MOVE_PROJECT => array('execute', 0), Task::EVENT_ASSIGNEE_CHANGE => array('execute', 0), - GithubWebhook::EVENT_ISSUE_OPENED => array('execute', 0), - GithubWebhook::EVENT_ISSUE_CLOSED => array('execute', 0), - GithubWebhook::EVENT_ISSUE_REOPENED => array('execute', 0), - GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE => array('execute', 0), - GithubWebhook::EVENT_ISSUE_LABEL_CHANGE => array('execute', 0), - GithubWebhook::EVENT_ISSUE_COMMENT => array('execute', 0), - GithubWebhook::EVENT_COMMIT => array('execute', 0), ); } diff --git a/tests/units/ProjectTest.php b/tests/units/ProjectTest.php index 38b742b3..4553dd3a 100644 --- a/tests/units/ProjectTest.php +++ b/tests/units/ProjectTest.php @@ -104,7 +104,7 @@ class ProjectTest extends Base $project = $p->getById(1); $this->assertNotEmpty($project); - $this->assertEquals($now + 1, $project['last_modified']); + $this->assertGreaterThan($now, $project['last_modified']); } public function testIsLastModified() |