summaryrefslogtreecommitdiff
path: root/tests/units/AppHelperTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-05 23:30:56 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-05 23:30:56 -0400
commit710f2c7bb046b43ec9878ae795a181101f6d7515 (patch)
treeb62723b6b49c3b6bf2b3ca41a772f552464a9031 /tests/units/AppHelperTest.php
parent94b38dd94bd819168163003beec8ef693f9d9839 (diff)
Improve unit tests
Diffstat (limited to 'tests/units/AppHelperTest.php')
-rw-r--r--tests/units/AppHelperTest.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/units/AppHelperTest.php b/tests/units/AppHelperTest.php
deleted file mode 100644
index ad4bc151..00000000
--- a/tests/units/AppHelperTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-require_once __DIR__.'/Base.php';
-
-use Core\Session;
-use Helper\App;
-use Model\Config;
-
-class AppHelperTest extends Base
-{
- public function testJsLang()
- {
- $h = new App($this->container);
- $this->assertEquals('en', $h->jsLang());
- }
-
- public function testTimezone()
- {
- $h = new App($this->container);
- $this->assertEquals('UTC', $h->getTimezone());
- }
-
- public function testFlashMessage()
- {
- $h = new App($this->container);
- $s = new Session;
-
- $this->assertEmpty($h->flashMessage());
- $s->flash('test & test');
- $this->assertEquals('<div class="alert alert-success alert-fade-out">test &amp; test</div>', $h->flashMessage());
- $this->assertEmpty($h->flashMessage());
-
- $this->assertEmpty($h->flashMessage());
- $s->flashError('test & test');
- $this->assertEquals('<div class="alert alert-error">test &amp; test</div>', $h->flashMessage());
- $this->assertEmpty($h->flashMessage());
- }
-}