diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-07-23 14:50:59 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-07-23 14:50:59 -0400 |
| commit | a823cc1d08535539f850711c0b9edb5b648f1960 (patch) | |
| tree | 0988d0fd6dba3fe304efcf3fadc0b6f0f715fa67 /tests/units/EventBuilder/TaskFileEventBuilderTest.php | |
| parent | b6119e7dee84869a619dedccd9c80df4422a4f5b (diff) | |
NotificationModel refactoring
Diffstat (limited to 'tests/units/EventBuilder/TaskFileEventBuilderTest.php')
| -rw-r--r-- | tests/units/EventBuilder/TaskFileEventBuilderTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/EventBuilder/TaskFileEventBuilderTest.php b/tests/units/EventBuilder/TaskFileEventBuilderTest.php index c253b913..c90e18d3 100644 --- a/tests/units/EventBuilder/TaskFileEventBuilderTest.php +++ b/tests/units/EventBuilder/TaskFileEventBuilderTest.php @@ -13,7 +13,7 @@ class TaskFileEventBuilderTest extends Base { $taskFileEventBuilder = new TaskFileEventBuilder($this->container); $taskFileEventBuilder->withFileId(42); - $this->assertNull($taskFileEventBuilder->build()); + $this->assertNull($taskFileEventBuilder->buildEvent()); } public function testBuild() @@ -27,7 +27,7 @@ class TaskFileEventBuilderTest extends Base $this->assertEquals(1, $taskCreationModel->create(array('title' => 'test', 'project_id' => 1))); $this->assertEquals(1, $taskFileModel->create(1, 'Test', '/tmp/test', 123)); - $event = $taskFileEventBuilder->withFileId(1)->build(); + $event = $taskFileEventBuilder->withFileId(1)->buildEvent(); $this->assertInstanceOf('Kanboard\Event\TaskFileEvent', $event); $this->assertNotEmpty($event['file']); |
