summaryrefslogtreecommitdiff
path: root/tests/integration/TaskProcedureTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-31 14:57:30 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-31 14:57:30 -0400
commit9f2ef84cd08607d1b4df0ab31f70eda65ea9ee83 (patch)
tree89087bb9948694c6042ec6765ca4c18c5b258699 /tests/integration/TaskProcedureTest.php
parentdc5accae30d225fd0d114055036bfee9b897110c (diff)
Fix PHP error in PR #2535
Diffstat (limited to 'tests/integration/TaskProcedureTest.php')
-rw-r--r--tests/integration/TaskProcedureTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/integration/TaskProcedureTest.php b/tests/integration/TaskProcedureTest.php
index f932355c..8b3e622c 100644
--- a/tests/integration/TaskProcedureTest.php
+++ b/tests/integration/TaskProcedureTest.php
@@ -19,42 +19,42 @@ class TaskProcedureTest extends BaseProcedureTest
$this->assertSaveTaskMetadata();
$this->assertGetTaskMetadata();
$this->assertGetTaskMetadataByName();
- $this->assertRemoveTaskMetadata():
+ $this->assertRemoveTaskMetadata();
}
public function assertSaveTaskMetadata()
{
- $createMetaKey = $this->app->saveTaskMetadata($this->taskId,array($this->metaKey => 'metaValue1'));
+ $createMetaKey = $this->app->saveTaskMetadata($this->taskId, array($this->metaKey => 'metaValue1'));
$this->assertTrue($createMetaKey);
}
-
+
public function assertGetTaskMetadata()
{
- $createMetaKey = $this->app->saveTaskMetadata($this->taskId,array($this->metaKey => 'metaValue1'));
+ $createMetaKey = $this->app->saveTaskMetadata($this->taskId, array($this->metaKey => 'metaValue1'));
$this->assertTrue($createMetaKey,'Did not create metakey with success');
- $metaData = $this->app->getTaskMetadata(($this->taskId);
+ $metaData = $this->app->getTaskMetadata(($this->taskId));
$this->assertArrayHasKey($this->metaKey, $metaData);
$this->assertEquals('metaValue1', $metaData[$this->metaKey]);
}
-
+
public function assertGetTaskMetadataByName()
{
- $createMetaKey = $this->app->saveTaskMetadata($this->taskId,array($this->metaKey => 'metaValue1'));
+ $createMetaKey = $this->app->saveTaskMetadata($this->taskId, array($this->metaKey => 'metaValue1'));
$this->assertTrue($createMetaKey,'Did not create metakey with success');
$metaValue = $this->app->getTaskMetadataByName($this->taskId,$this->metaKey);
$this->assertEquals('metaValue1', $metaValue, 'Did not return correct metadata value');
}
-
+
public function assertRemoveTaskMetadata()
{
- $createMetaKey = $this->app->saveTaskMetadata($this->taskId,array($this->metaKey => 'metaValue1'));
+ $createMetaKey = $this->app->saveTaskMetadata($this->taskId, array($this->metaKey => 'metaValue1'));
$this->assertTrue($createMetaKey,'Did not create metakey with success');
$metaValue = $this->app->removeTaskMetadata($this->taskId,$this->metaKey);
$this->assertTrue($metaValue,'Did not remove metakey with success');
$metaValue = $this->app->getTaskMetadataByName($this->taskId,$this->metaKey);
$this->assertEquals('',$metaValue,'Did not return an empty string due to metadata being deleted');
}
-
+
public function assertUpdateTask()
{
$this->assertTrue($this->app->updateTask(array('id' => $this->taskId, 'color_id' => 'red')));