summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Helper/AssetHelperTest.php1
-rw-r--r--tests/units/Helper/UrlHelperTest.php1
-rw-r--r--tests/units/Model/BoardTest.php1
-rw-r--r--tests/units/Model/ProjectTest.php3
-rw-r--r--tests/units/Model/TaskCreationTest.php1
5 files changed, 7 insertions, 0 deletions
diff --git a/tests/units/Helper/AssetHelperTest.php b/tests/units/Helper/AssetHelperTest.php
index 7e1edb12..64fcd569 100644
--- a/tests/units/Helper/AssetHelperTest.php
+++ b/tests/units/Helper/AssetHelperTest.php
@@ -15,6 +15,7 @@ class AssetHelperTest extends Base
$this->assertEmpty($h->customCss());
$this->assertTrue($c->save(array('application_stylesheet' => 'p { color: red }')));
+ $this->container['memoryCache']->flush();
$this->assertEquals('<style>p { color: red }</style>', $h->customCss());
}
diff --git a/tests/units/Helper/UrlHelperTest.php b/tests/units/Helper/UrlHelperTest.php
index 405e9462..9f26a802 100644
--- a/tests/units/Helper/UrlHelperTest.php
+++ b/tests/units/Helper/UrlHelperTest.php
@@ -117,6 +117,7 @@ class UrlHelperTest extends Base
$c = new Config($this->container);
$c->save(array('application_url' => 'https://mykanboard/'));
+ $this->container['memoryCache']->flush();
$h = new Url($this->container);
$this->assertEquals('https://mykanboard/', $c->get('application_url'));
diff --git a/tests/units/Model/BoardTest.php b/tests/units/Model/BoardTest.php
index 125b9962..bb6c4b76 100644
--- a/tests/units/Model/BoardTest.php
+++ b/tests/units/Model/BoardTest.php
@@ -33,6 +33,7 @@ class BoardTest extends Base
$input = ' column #1 , column #2, ';
$this->assertTrue($c->save(array('board_columns' => $input)));
+ $this->container['memoryCache']->flush();
$this->assertEquals($input, $c->get('board_columns'));
$this->assertEquals(2, $p->create(array('name' => 'UnitTest2')));
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);
diff --git a/tests/units/Model/TaskCreationTest.php b/tests/units/Model/TaskCreationTest.php
index e35f1bc7..19b3b0d1 100644
--- a/tests/units/Model/TaskCreationTest.php
+++ b/tests/units/Model/TaskCreationTest.php
@@ -402,6 +402,7 @@ class TaskCreationTest extends Base
$this->assertEquals('yellow', $task['color_id']);
$this->assertTrue($c->save(array('default_color' => 'orange')));
+ $this->container['memoryCache']->flush();
$this->assertEquals(2, $tc->create(array('project_id' => 1, 'title' => 'test2')));