diff --git a/protected/humhub/docs/guide/dev-testing.md b/protected/humhub/docs/guide/dev-testing.md new file mode 100644 index 0000000000..de0f723112 --- /dev/null +++ b/protected/humhub/docs/guide/dev-testing.md @@ -0,0 +1,21 @@ +Testing +==================== + +1. Install codeception +composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*" + +2. Create test Database: +CREATE DATABASE `humhub_test` CHARACTER SET utf8 COLLATE utf8_general_ci; + +3. Migrate Up: +cd protected/humhub/tests/codeception/bin +php yii migrate/up --includeModuleMigrations=1 --interactive=0 +php yii installer/auto + +4. Build Tests: +cd protected/humhub/tests +codecept build + +5. Run Tests: +cd protected/humhub/tests/ +codecept run diff --git a/protected/humhub/modules/user/views/account/editModules.php b/protected/humhub/modules/user/views/account/editModules.php index a38301a095..19d0f4dbfc 100644 --- a/protected/humhub/modules/user/views/account/editModules.php +++ b/protected/humhub/modules/user/views/account/editModules.php @@ -9,7 +9,7 @@ use yii\helpers\Url;