diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-11-24 01:26:30 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-11-24 01:26:30 +0100 |
commit | 0def004963c62ff1edfce16272a87ba9f0c87e16 (patch) | |
tree | f743e785edf708454ab53efa13f38e35f10447e6 /tests/LinkDBTest.php | |
parent | c580024cfbe5f0d290b09157b9665d1b4131d7f4 (diff) | |
parent | 2e28269baed195d58bbe169841eed176b171db76 (diff) | |
download | Shaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.tar.gz Shaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.tar.zst Shaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.zip |
Merge pull request #375 from virtualtam/utils/permissions
tools: check file/directory permissions for Shaarli resources
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r-- | tests/LinkDBTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 451f1d6f..8929713d 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php | |||
@@ -4,6 +4,7 @@ | |||
4 | */ | 4 | */ |
5 | 5 | ||
6 | require_once 'application/Cache.php'; | 6 | require_once 'application/Cache.php'; |
7 | require_once 'application/FileUtils.php'; | ||
7 | require_once 'application/LinkDB.php'; | 8 | require_once 'application/LinkDB.php'; |
8 | require_once 'application/Utils.php'; | 9 | require_once 'application/Utils.php'; |
9 | require_once 'tests/utils/ReferenceLinkDB.php'; | 10 | require_once 'tests/utils/ReferenceLinkDB.php'; |
@@ -87,8 +88,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase | |||
87 | /** | 88 | /** |
88 | * Attempt to instantiate a LinkDB whereas the datastore is not writable | 89 | * Attempt to instantiate a LinkDB whereas the datastore is not writable |
89 | * | 90 | * |
90 | * @expectedException PHPUnit_Framework_Error_Warning | 91 | * @expectedException IOException |
91 | * @expectedExceptionMessageRegExp /failed to open stream: No such file or directory/ | 92 | * @expectedExceptionMessageRegExp /Error accessing null/ |
92 | */ | 93 | */ |
93 | public function testConstructDatastoreNotWriteable() | 94 | public function testConstructDatastoreNotWriteable() |
94 | { | 95 | { |