diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-12 14:18:15 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-12 14:18:15 +0300 |
commit | 78a91c361fd027fe3900dd9fe1b30e3c0ccd534f (patch) | |
tree | ad162da7e7daafdef5ba48710ea5e3027851c429 /tests | |
parent | e39947824aba282e9ffb56c002075c38f2488d51 (diff) |
Add extra configuration file in test sub-folder
Diffstat (limited to 'tests')
-rw-r--r-- | tests/_data/sorting-gallery.cnf | 6 | ||||
-rw-r--r-- | tests/_support/Helper/DataSetup.php | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/_data/sorting-gallery.cnf b/tests/_data/sorting-gallery.cnf new file mode 100644 index 00000000..ee521c41 --- /dev/null +++ b/tests/_data/sorting-gallery.cnf @@ -0,0 +1,6 @@ +--- +# Gallery configuration file +sorting: + type: name + order: asc + diff --git a/tests/_support/Helper/DataSetup.php b/tests/_support/Helper/DataSetup.php index d59dc9ae..a8800b1b 100644 --- a/tests/_support/Helper/DataSetup.php +++ b/tests/_support/Helper/DataSetup.php @@ -220,7 +220,7 @@ class DataSetup extends \Codeception\Module { public function restoreValidConfig() { $userFolder = $this->server->getUserFolder($this->userId); - $this->addFile($userFolder, $this->userId . '-' . 'gallery.cnf', 'gallery.cnf'); + $this->addFile($userFolder, $this->userId . '-gallery.cnf', 'gallery.cnf'); } /** @@ -316,7 +316,8 @@ class DataSetup extends \Codeception\Module { $this->createStructure($userFolder, $structure); // Add configuration. This will break if the config filename or the userId is changed - $this->addFile($userFolder, $userId . '-' . 'gallery.cnf', 'gallery.cnf'); + $this->addFile($userFolder, $userId . '-gallery.cnf', 'gallery.cnf'); + $this->addFile($userFolder->get('folder2'), 'sorting-gallery.cnf', 'gallery.cnf'); } /** |