aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-10-08 13:22:51 +0200
committerWilly Micieli <micieli@laposte.net>2019-10-08 13:22:51 +0200
commita52a2710870d7b7c5a9a546e0e3720224d0d16e1 (patch)
tree9d93314d795df6dcb686913128aa581f49c98a03
parent8505054b03f5a9a487f62a844519afcd8f36f350 (diff)
downloadimperium-a52a2710870d7b7c5a9a546e0e3720224d0d16e1.zip
imperium-a52a2710870d7b7c5a9a546e0e3720224d0d16e1.tar.gz
add missing test
-rw-r--r--config/history.yaml2
-rw-r--r--tests/Helpers/AdminTest.php7
2 files changed, 9 insertions, 0 deletions
diff --git a/config/history.yaml b/config/history.yaml
new file mode 100644
index 0000000..be2a18b
--- /dev/null
+++ b/config/history.yaml
@@ -0,0 +1,2 @@
+class: 'btn'
+text: "back" \ No newline at end of file
diff --git a/tests/Helpers/AdminTest.php b/tests/Helpers/AdminTest.php
index 1b41051..092014e 100644
--- a/tests/Helpers/AdminTest.php
+++ b/tests/Helpers/AdminTest.php
@@ -26,6 +26,13 @@ class AdminTest extends Unit
$this->assertTrue(redirect('root','a',true)->isRedirect('/'));
}
+
+ public function test_history()
+ {
+ $this->assertNotEmpty(history());
+ $this->assertStringContainsString('btn',history());
+ $this->assertStringContainsString('back',history());
+ }
public function test_db()
{