]> source.dussan.org Git - nextcloud-server.git/commit
Added unit tests for when adding ext storage mount points
authorVincent Petry <pvince81@owncloud.com>
Tue, 18 Mar 2014 17:29:08 +0000 (18:29 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 18 Mar 2014 17:29:08 +0000 (18:29 +0100)
commit1f79f368ef3cf7eb9947996cff36b8dee45f48f5
tree66b0ffd47ff223d08113c127cb76bca56c09edbf
parent8ababef4cdd8a62b0f2afcecdc1233b84795163d
Added unit tests for when adding ext storage mount points

- test config was written correctly (global and local)
- test that personal mount points can be added for allowed backends
- test that personal mount points cannot be added for disallowed backends
- added $skipTest flag to make it possible add mount points without
  doing an actual check/connection (note: this is necessary because the
  static class OC_Mount_Config cannot be mocked)
apps/files_external/lib/config.php
apps/files_external/tests/mountconfig.php