nextcloud/tests
Daniel Calviño Sánchez fcd6cf08e0 Generalize file list steps so a specific ancestor can be used
The "FileListContext" provides steps to interact with and check the
behaviour of a file list. However, the "FileListContext" does not know
the right file list ancestor that has to be used by the file list steps,
so until now the file list steps were explicitly wired to the Files app
and they could be used only in that case.

Instead of duplicating the steps with a slightly different name (for
example, "I create a new folder named :folderName in the public shared
folder" instead of "I create a new folder named :folderName") the steps
were generalized; now contexts that "know" that certain file list
ancestor has to be used by the FileListContext steps performed by
certain actor from that point on (until changed again) set it
explicitly. For example, when the current page is the Files app then the
ancestor of the file list is the main view of the current section of the
Files app, but when the current page is a shared link then the ancestor
is set to null (because there will be just one file list, and thus its
ancestor is not relevant to differentiate between instances)

A helper trait, "FileListAncestorSetter", was introduced to reduce the
boilerplate needed to set the file list ancestor from other contexts.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-03-09 03:37:08 +01:00
..
Core Add CSRF token controller to retrieve the current CSRF token 2018-03-08 16:48:50 +01:00
Settings this was a migration step to ownCloud 8.0 to restructure the encryption folder which is no longer needed 2018-03-02 10:09:52 +01:00
acceptance Generalize file list steps so a specific ancestor can be used 2018-03-09 03:37:08 +01:00
apps Validate the info.xml against the appstore schema file 2018-02-16 10:23:51 +01:00
data Fix email buttons for white theme 2017-12-11 14:33:54 +01:00
docker Namespace and array syntax fixes 2017-03-19 14:52:54 -06:00
lib Merge pull request #8716 from nextcloud/fix-cache-prefixing 2018-03-08 21:12:54 +01:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +01:00
travis Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
apps.php Fix the tests again 2016-05-25 16:51:02 +02:00
bootstrap.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00
drone-wait-objectstore.sh Kill objectstore CI if we can't create a file 2018-02-26 14:54:27 +01:00
enable_all.php Add tests 2018-01-25 13:44:47 +01:00
karma.config.js Add unit tests for the navigation bar slide gesture 2017-12-14 19:17:40 +01:00
phpunit-autotest-external.xml Adjust the phpunit config 2016-05-25 15:14:37 +02:00
phpunit-autotest.xml Add tests 2018-01-25 13:44:47 +01:00
preseed-config.php Use username + pass in config 2018-02-26 14:54:21 +01:00
redis-cluster.config.php Fix drone 2017-07-14 15:04:18 +02:00
redis.config.php Fix drone 2017-07-14 15:04:18 +02:00
startsessionlistener.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00