- Chng #4170: Updated codeception to v4.1.6

- Chng #4138: Updated jQuery to v3.5.1
This commit is contained in:
buddh4 2020-06-22 16:53:08 +02:00
parent 040b87c76e
commit ed48300784
23 changed files with 2964 additions and 2791 deletions

View File

@ -15,7 +15,6 @@
"require": {
"php": ">=7.0.0",
"ext-zip": "*",
"bower-asset/jquery": "^3.4",
"cebe/markdown": "1.0.2",
"firebase/php-jwt": "^5.0",
"jbroadway/urlify": "^1.0",
@ -34,7 +33,7 @@
"npm-asset/imagesloaded": "*",
"npm-asset/intersection-observer": "^0.7.0",
"npm-asset/jplayer": "2.9.*",
"npm-asset/jquery": "3.4.1",
"npm-asset/jquery": "^3.5.1",
"npm-asset/jquery-autosize": "1.*",
"npm-asset/jquery-knob": "1.2.*",
"npm-asset/jquery.cookie": "^1.4.1",
@ -50,7 +49,7 @@
"raoul2000/yii2-jcrop-widget": "*",
"twig/twig": "^1.0",
"xj/yii2-jplayer-widget": "*",
"yiisoft/yii2": "~2.0.30",
"yiisoft/yii2": "~2.0.35",
"yiisoft/yii2-authclient": "~2.2.0",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-httpclient": "~2.0.0",
@ -61,15 +60,22 @@
"yiisoft/yii2-swiftmailer": "~2.0.0",
"zendframework/zend-http": "*",
"zendframework/zend-ldap": "^2.5",
"ext-exif": "*"
"codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.1.1 | ^9.0",
"codeception/stub": "^2.0 | ^3.0",
"ext-exif": "*"
},
"require-dev": {
"codeception/codeception": "2.4.5",
"codeception/specify": "~0.4 || ~1.0",
"codeception/verify": "~0.4 || ~1.0",
"yiisoft/yii2-debug": "~2.0.0",
"codeception/codeception": "^4.0",
"codeception/module-asserts": "^1.0",
"codeception/module-filesystem": "^1.0",
"codeception/module-webdriver": "^1.1",
"codeception/module-yii2": "^1.0",
"codeception/specify": "^1.0",
"codeception/verify": "~0.5.0 || ~1.1.0",
"symfony/browser-kit": ">=2.7 <=4.2.4",
"yiisoft/yii2-debug": "~2.1.0",
"yiisoft/yii2-faker": "~2.0.0",
"yiisoft/yii2-gii": "~2.0.0"
"yiisoft/yii2-gii": "~2.1.0"
},
"repositories": [
{

4339
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -8,3 +8,5 @@ HumHub Change Log
- Enh: Improved performance of cli marketplace module updater
- Fix #4054: Duplicate "font-weight" value
- Enh: Prevent 100% image height in blueimp gallery
- Chng #4170: Updated codeception to v4.1.6
- Chng #4138: Updated jQuery to v3.5.1

View File

@ -1,7 +1,7 @@
actor: Tester
namespace: activity
bootstrap: _bootstrap.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
@ -36,4 +36,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: admin
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -17,15 +18,13 @@ coverage:
- ../widgets/*
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -39,4 +38,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: comment
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -15,13 +16,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -35,4 +35,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,32 +1,31 @@
actor: Tester
namespace: content
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
remote: false
include:
- ../activities/*
- ../components/*
- ../controllers/*
- ../helpers/*
- ../interfaces/*
- ../live/*
# - ../activities/*
#- ../components/*
# - ../controllers/*
# - ../helpers/*
#- ../interfaces/*
# - ../live/*
- ../models/*
- ../notifications/*
- ../permissions/*
- ../views/*
- ../widgets/*
- ../Events.php
- ../Module.php
# - ../notifications/*
# - ../permissions/*
# - ../views/*
#- ../widgets/*
# - ../Events.php
# - ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -40,4 +39,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: dashboard
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -12,13 +13,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -32,4 +32,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,13 +1,13 @@
actor: Tester
namespace: file
bootstrap: _bootstrap.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -21,4 +21,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: friendship
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -14,13 +15,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -34,4 +34,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: like
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -13,13 +14,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -33,4 +33,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: notification
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -17,13 +18,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -37,4 +37,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: post
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -13,13 +14,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -33,4 +33,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: space
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -22,13 +23,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -42,4 +42,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: stream
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -11,13 +12,12 @@ coverage:
- ../widgets/*
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -31,4 +31,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,13 +1,13 @@
actor: Tester
namespace: tour
bootstrap: _bootstrap.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -21,4 +21,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: user
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -21,13 +22,12 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false
memory_limit: 1024M
log: true
# This value controls whether PHPUnit attempts to backup global variables
# See https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
backup_globals: true
@ -41,4 +41,3 @@ config:
# the entry script URL (with host info) for functional and acceptance tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/index-test.php

View File

@ -1,5 +1,6 @@
actor: Tester
namespace: web
bootstrap: _bootstrap.php
coverage:
c3_url: 'http://localhost:8080/index-test.php'
enabled: true
@ -10,7 +11,6 @@ coverage:
- ../Events.php
- ../Module.php
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
shuffle: false

View File

@ -1,4 +1,5 @@
actor: Tester
bootstrap: _bootstrap.php
config:
test_entry_url: "http://localhost:8080/index-test.php"
coverage:
@ -24,7 +25,6 @@ paths:
log: codeception/_output
tests: codeception
settings:
bootstrap: _bootstrap.php
colors: true
log: true
memory_limit: 1024M

View File

@ -2,6 +2,7 @@
use tests\codeception\_pages\LoginPage;
use yii\helpers\Url;
use \Facebook\WebDriver\WebDriverKeys;
/**
* Inherited Methods
@ -246,14 +247,13 @@ class AcceptanceTester extends \Codeception\Actor
public function logout()
{
$this->clickAccountDropDown();
$this->wait(1);
$this->click('Logout');
$this->wait(2);
$this->jsClick('[data-menu-id="account-logout"]');
if(!$this->guestAccessAllowed) {
$this->waitForElementVisible('#login-form');
} else {
$this->waitForText('Sign in / up');
$this->wait(2);
$this->wait(1);
}
}

View File

@ -1,39 +0,0 @@
{
"headers": {
"Strict-Transport-Security": "max-age=31536000",
"X-XSS-Protection": "1; mode=block",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "deny",
"Referrer-Policy": "no-referrer-when-downgrade",
"X-Permitted-Cross-Domain-Policies": "master-only"
},
"csp": {
"nonce": true,
"report-only": false,
"report": false,
"default-src": {
"self": true
},
"img-src": {
"allow":["*"]
},
"font-src": {
"self": true
},
"style-src": {
"self": true,
"unsafe-inline": true
},
"object-src": {},
"frame-src": {
"allow":["*"]
},
"script-src": {
"self": true,
"unsafe-inline": true,
"unsafe-eval": false,
"report-sample": true
},
"upgrade-insecure-requests": false
}
}

View File

@ -26,6 +26,9 @@ return [
'installed' => true,
],
'modules' => [
'user' => [
'loginRememberMeDefault' => false
],
'web' => [
'security' => [
"headers" => [