summaryrefslogtreecommitdiff
path: root/tests/units/EventBuilder/ProjectFileEventBuilderTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 14:50:59 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 14:50:59 -0400
commita823cc1d08535539f850711c0b9edb5b648f1960 (patch)
tree0988d0fd6dba3fe304efcf3fadc0b6f0f715fa67 /tests/units/EventBuilder/ProjectFileEventBuilderTest.php
parentb6119e7dee84869a619dedccd9c80df4422a4f5b (diff)
NotificationModel refactoring
Diffstat (limited to 'tests/units/EventBuilder/ProjectFileEventBuilderTest.php')
-rw-r--r--tests/units/EventBuilder/ProjectFileEventBuilderTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/EventBuilder/ProjectFileEventBuilderTest.php b/tests/units/EventBuilder/ProjectFileEventBuilderTest.php
index bfe22719..8f5eb87e 100644
--- a/tests/units/EventBuilder/ProjectFileEventBuilderTest.php
+++ b/tests/units/EventBuilder/ProjectFileEventBuilderTest.php
@@ -12,7 +12,7 @@ class ProjectFileEventBuilderTest extends Base
{
$projectFileEventBuilder = new ProjectFileEventBuilder($this->container);
$projectFileEventBuilder->withFileId(42);
- $this->assertNull($projectFileEventBuilder->build());
+ $this->assertNull($projectFileEventBuilder->buildEvent());
}
public function testBuild()
@@ -24,7 +24,7 @@ class ProjectFileEventBuilderTest extends Base
$this->assertEquals(1, $projectModel->create(array('name' => 'test1')));
$this->assertEquals(1, $projectFileModel->create(1, 'Test', '/tmp/test', 123));
- $event = $projectFileEventBuilder->withFileId(1)->build();
+ $event = $projectFileEventBuilder->withFileId(1)->buildEvent();
$this->assertInstanceOf('Kanboard\Event\ProjectFileEvent', $event);
$this->assertNotEmpty($event['file']);