Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-08-21 01:06:33 +0300
committerOlivier Paroz <github@oparoz.com>2015-08-21 01:06:33 +0300
commit0aba55017386a6e56673a62bedcaf88cdadf3e59 (patch)
treed94a6a8e6800b3122b71126094d3ebc072b589e3 /tests/_support
parent7354cf79f1c5cef9a4beee9990358d3c45de98f7 (diff)
Some EnvCheckMiddleware path tests
I've had to add our test setup creator to the unit testing suite because most filesystems methods don't work when using the Node API via the AppFramework
Diffstat (limited to 'tests/_support')
-rw-r--r--tests/_support/Helper/CoreTestCase.php4
-rw-r--r--tests/_support/Helper/DataSetup.php10
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/_support/Helper/CoreTestCase.php b/tests/_support/Helper/CoreTestCase.php
index 21547a28..e2c8c0be 100644
--- a/tests/_support/Helper/CoreTestCase.php
+++ b/tests/_support/Helper/CoreTestCase.php
@@ -63,8 +63,8 @@ class CoreTestCase extends \Test\TestCase {
*
* @return mixed
*/
- protected static function invokePrivate($object, $methodName, array $parameters = []) {
- parent::invokePrivate($object, $methodName, $parameters);
+ public static function invokePrivate($object, $methodName, array $parameters = []) {
+ return parent::invokePrivate($object, $methodName, $parameters);
}
}
diff --git a/tests/_support/Helper/DataSetup.php b/tests/_support/Helper/DataSetup.php
index ec340fa1..d59dc9ae 100644
--- a/tests/_support/Helper/DataSetup.php
+++ b/tests/_support/Helper/DataSetup.php
@@ -31,6 +31,8 @@ use OCP\AppFramework\IAppContainer;
*/
class DataSetup extends \Codeception\Module {
+ /** @var CoreTestCase */
+ public $coreTestCase;
/** @var array<string> */
public $mediaTypes;
/** @var array<string> */
@@ -80,9 +82,9 @@ class DataSetup extends \Codeception\Module {
],
'folder3' => [],
'folder4' => [ // Folder will be hidden in Gallery
- 'testimage.jpg',
- 'testimage-wide.png',
- '.nomedia',
+ 'testimage.jpg',
+ 'testimage-wide.png',
+ '.nomedia',
]
];
/** @var Folder */
@@ -100,8 +102,6 @@ class DataSetup extends \Codeception\Module {
/** @var string */
public $sharedFileToken;
- /** @var CoreTestCase */
- private $coreTestCase;
/** @var IAppContainer */
private $container;
/** @var IServerContainer */