summaryrefslogtreecommitdiff
path: root/tests/integration/TaskProcedureTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/TaskProcedureTest.php')
-rw-r--r--tests/integration/TaskProcedureTest.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/integration/TaskProcedureTest.php b/tests/integration/TaskProcedureTest.php
index 8b3e622c..f456ae52 100644
--- a/tests/integration/TaskProcedureTest.php
+++ b/tests/integration/TaskProcedureTest.php
@@ -5,7 +5,6 @@ require_once __DIR__.'/BaseProcedureTest.php';
class TaskProcedureTest extends BaseProcedureTest
{
protected $projectName = 'My project to test tasks';
- protected $metaKey = 'MyTestMetaKey';
public function testAll()
{
@@ -16,43 +15,6 @@ class TaskProcedureTest extends BaseProcedureTest
$this->assertGetTaskByReference();
$this->assertGetAllTasks();
$this->assertOpenCloseTask();
- $this->assertSaveTaskMetadata();
- $this->assertGetTaskMetadata();
- $this->assertGetTaskMetadataByName();
- $this->assertRemoveTaskMetadata();
- }
-
- public function assertSaveTaskMetadata()
- {
- $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'));
- $this->assertTrue($createMetaKey,'Did not create metakey with success');
- $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'));
- $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'));
- $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()