diff options
author | Michael Lüpkes <michael@luepkes.net> | 2015-02-03 11:28:38 +0100 |
---|---|---|
committer | Michael Lüpkes <michael@luepkes.net> | 2015-02-03 11:28:38 +0100 |
commit | 644f511df286aa2ef032fc8d4361df654ea71968 (patch) | |
tree | 729b9692276255f998f536af4493b0a0f3201f5b /tests | |
parent | e5ea36125536b5ac8f8a7e31c2602e9bd1b52075 (diff) |
Fix for syntax unsupported in PHP 5.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/ProjectDuplicationTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/units/ProjectDuplicationTest.php b/tests/units/ProjectDuplicationTest.php index 9ddc8f89..bb8e0408 100644 --- a/tests/units/ProjectDuplicationTest.php +++ b/tests/units/ProjectDuplicationTest.php @@ -244,7 +244,8 @@ class ProjectDuplicationTest extends Base $this->assertEquals('S2', $swimlanes[1]['name']); $this->assertEquals(6, $swimlanes[2]['id']); $this->assertEquals('S3', $swimlanes[2]['name']); - $this->assertEquals('New Default', $s->getDefault(2)['default_swimlane']); + $new_default = $s->getDefault(2); + $this->assertEquals('New Default', $new_default['default_swimlane']); // Check if Tasks have been duplicated @@ -261,6 +262,7 @@ class ProjectDuplicationTest extends Base // Drop project unset($tasks); unset($swimlanes); + unset($new_default); $p->remove(2); @@ -281,7 +283,8 @@ class ProjectDuplicationTest extends Base $this->assertEquals('S2', $swimlanes[1]['name']); $this->assertEquals(6, $swimlanes[2]['id']); $this->assertEquals('S3', $swimlanes[2]['name']); - $this->assertEquals('New Default', $s->getDefault(2)['default_swimlane']); + $new_default = $s->getDefault(2); + $this->assertEquals('New Default', $new_default['default_swimlane']); // Check if Tasks have NOT been duplicated $this->assertCount(0, $tf->getAll(2)); @@ -289,6 +292,7 @@ class ProjectDuplicationTest extends Base // Drop project unset($tasks); unset($swimlanes); + unset($new_default); $p->remove(2); |