summaryrefslogtreecommitdiff
path: root/tests/units/Model/ProjectTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-14 21:59:19 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-14 21:59:19 -0500
commit1bbd4faf56969427b550a4d006f2d5018cf97371 (patch)
tree098a1735fd6a8eeb2c8cd4d5091715e0d983138e /tests/units/Model/ProjectTest.php
parent9e24bb2ef08b86c6d1aa150fda5a05538f4882da (diff)
Fix broken unit test
Diffstat (limited to 'tests/units/Model/ProjectTest.php')
-rw-r--r--tests/units/Model/ProjectTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/units/Model/ProjectTest.php b/tests/units/Model/ProjectTest.php
index 990cee5a..1b3d5be3 100644
--- a/tests/units/Model/ProjectTest.php
+++ b/tests/units/Model/ProjectTest.php
@@ -86,6 +86,7 @@ class ProjectTest extends Base
// Single category
$this->assertTrue($c->save(array('project_categories' => 'Test1')));
+ $this->container['memoryCache']->flush();
$this->assertEquals(2, $p->create(array('name' => 'UnitTest2')));
$project = $p->getById(2);
@@ -99,6 +100,7 @@ class ProjectTest extends Base
// Multiple categories badly formatted
$this->assertTrue($c->save(array('project_categories' => 'ABC, , DEF 3, ')));
+ $this->container['memoryCache']->flush();
$this->assertEquals(3, $p->create(array('name' => 'UnitTest3')));
$project = $p->getById(3);
@@ -112,6 +114,7 @@ class ProjectTest extends Base
// No default categories
$this->assertTrue($c->save(array('project_categories' => ' ')));
+ $this->container['memoryCache']->flush();
$this->assertEquals(4, $p->create(array('name' => 'UnitTest4')));
$project = $p->getById(4);