diff options
Diffstat (limited to 'application/test/tests/test_service_files.php')
-rw-r--r-- | application/test/tests/test_service_files.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/test/tests/test_service_files.php b/application/test/tests/test_service_files.php index 401ddbe86..b9d6fce66 100644 --- a/application/test/tests/test_service_files.php +++ b/application/test/tests/test_service_files.php @@ -26,7 +26,9 @@ class test_service_files extends \test\Test { $a = array(); try { \service\files::verify_uploaded_files($a); + // @codeCoverageIgnoreStart $this->t->fail("verify should error"); + // @codeCoverageIgnoreEnd } catch (\exceptions\UserInputException $e) { $this->t->is($e->get_error_id(), "file/no-file", "verify should error"); } @@ -66,7 +68,9 @@ class test_service_files extends \test\Test { try { \service\files::verify_uploaded_files($a); + // @codeCoverageIgnoreStart $this->t->fail("verify should error"); + // @codeCoverageIgnoreEnd } catch (\exceptions\UserInputException $e) { $data = $e->get_data(); $this->t->is($e->get_error_id(), "file/upload-verify", "verify should error"); |