aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/config/ConfigPhpTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-01-25 19:55:31 +0100
committerArthurHoaro <arthur@hoa.ro>2018-01-25 19:55:31 +0100
commitcb4ddbe4e76c81a50748fc3869225f16d9ce13f0 (patch)
treef38f39f42b7b295be3eb3d8c49abcd6461d49bf0 /tests/config/ConfigPhpTest.php
parentd449f79a0d7ca808b891baf73b9e25ce7f7e48fe (diff)
downloadShaarli-cb4ddbe4e76c81a50748fc3869225f16d9ce13f0.tar.gz
Shaarli-cb4ddbe4e76c81a50748fc3869225f16d9ce13f0.tar.zst
Shaarli-cb4ddbe4e76c81a50748fc3869225f16d9ce13f0.zip
Fix warnings when upgrading from legacy SebSauvage version
Fixes #1040
Diffstat (limited to 'tests/config/ConfigPhpTest.php')
-rw-r--r--tests/config/ConfigPhpTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/config/ConfigPhpTest.php b/tests/config/ConfigPhpTest.php
index abfbb305..be23eea1 100644
--- a/tests/config/ConfigPhpTest.php
+++ b/tests/config/ConfigPhpTest.php
@@ -37,6 +37,20 @@ class ConfigPhpTest extends \PHPUnit_Framework_TestCase
37 } 37 }
38 38
39 /** 39 /**
40 * Read an empty existent config file -> array with blank default values.
41 */
42 public function testReadEmpty()
43 {
44 $dataFile = 'tests/utils/config/emptyConfigPhp.php';
45 $conf = $this->configIO->read($dataFile);
46 $this->assertEmpty($conf['login']);
47 $this->assertEmpty($conf['title']);
48 $this->assertEmpty($conf['titleLink']);
49 $this->assertEmpty($conf['config']);
50 $this->assertEmpty($conf['plugins']);
51 }
52
53 /**
40 * Write a new config file. 54 * Write a new config file.
41 */ 55 */
42 public function testWriteNew() 56 public function testWriteNew()