diff --git a/.travis.yml b/.travis.yml index 0f6e69bc..3e8d25f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: - DB_ENGINE=InnoDB matrix: - WP_VERSION= + - WP_VERSION=4.4.2 - WP_VERSION=4.3.1 - WP_VERSION=4.2.4 - WP_VERSION=4.1.5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 379b51b1..826b0b59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ## Changelog ## +### 0.18.7 ### + +Welcome WordPress 4.5 + +* Upgrade autotests + + ### 0.18.6 ### Add result's page extension point and PHP7 support diff --git a/README.md b/README.md index 3549f038..ea50a317 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ **Donate link:** https://www.paypal.me/Ustimenko/19.83eur **Tags:** psychological, testing, test, quiz **Requires at least:** 3.2 -**Tested up to:** 4.4.2 -**Stable tag:** 0.18.6 +**Tested up to:** 4.5 +**Stable tag:** 0.18.7 **License:** GPLv3 **License URI:** http://www.gnu.org/licenses/gpl-3.0.html @@ -118,11 +118,11 @@ Sorry, I dont' have too much time for custom paid development. WordPress as plat Most giant are **[feature](https://wordpress.org/tags/wp-testing-feature)**, **[bug](https://wordpress.org/tags/wp-testing-bug)** and **[support](https://wordpress.org/tags/wp-testing-support)**. Other are groupped under them. -**Feature**: [alert required questions](https://wordpress.org/tags/wp-testing-alert-required-questions), [answer rate](https://wordpress.org/tags/wp-testing-answer-rate), [answer type number](https://wordpress.org/tags/wp-testing-answer-type-number), [author](https://wordpress.org/tags/wp-testing-author), [chained steps strategy](https://wordpress.org/tags/wp-testing-chained-steps-strategy), [conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin), [custom template](https://wordpress.org/tags/wp-testing-custom-template), [diagram settings](https://wordpress.org/tags/wp-testing-diagram-settings), **[diagram type](https://wordpress.org/tags/wp-testing-diagram-type)**, **[email results](https://wordpress.org/tags/wp-testing-email-results)**, [export import tests](https://wordpress.org/tags/wp-testing-export-import-tests), **[export results](https://wordpress.org/tags/wp-testing-export-results)**, [fields](https://wordpress.org/tags/wp-testing-fields), [for users](https://wordpress.org/tags/wp-testing-for-users), [formula absolute](https://wordpress.org/tags/wp-testing-formula-absolute), [formula division](https://wordpress.org/tags/wp-testing-formula-division), [formula not](https://wordpress.org/tags/wp-testing-formula-not), [hide scales](https://wordpress.org/tags/wp-testing-hide-scales), [hide test description](https://wordpress.org/tags/wp-testing-hide-test-description), [individual answers](https://wordpress.org/tags/wp-testing-individual-answers), **[low memory](https://wordpress.org/tags/wp-testing-low-memory)**, [multiline questions](https://wordpress.org/tags/wp-testing-multiline-questions), [multiple answers](https://wordpress.org/tags/wp-testing-multiple-answers), [negative scales sum](https://wordpress.org/tags/wp-testing-negative-scales-sum), [paid results](https://wordpress.org/tags/wp-testing-paid-results), [paid test](https://wordpress.org/tags/wp-testing-paid-test), [passing counter](https://wordpress.org/tags/wp-testing-passing-counter), [pdf results](https://wordpress.org/tags/wp-testing-pdf-results), [postprocess results](https://wordpress.org/tags/wp-testing-postprocess-results), [public scale names](https://wordpress.org/tags/wp-testing-public-scale-names), [publish homepage](https://wordpress.org/tags/wp-testing-publish-homepage), [question per page](https://wordpress.org/tags/wp-testing-question-per-page), [random question answer order](https://wordpress.org/tags/wp-testing-random-question-answer-order), [redirect](https://wordpress.org/tags/wp-testing-redirect), **[reorder questions](https://wordpress.org/tags/wp-testing-reorder-questions)**, [reorder scales results answers](https://wordpress.org/tags/wp-testing-reorder-scales-results-answers), **[respondents results](https://wordpress.org/tags/wp-testing-respondents-results)**, **[results page](https://wordpress.org/tags/wp-testing-results-page)**, [rich scales results](https://wordpress.org/tags/wp-testing-rich-scales-results), [scale bar orientation](https://wordpress.org/tags/wp-testing-scale-bar-orientation), **[scores decimal](https://wordpress.org/tags/wp-testing-scores-decimal)**, [sections](https://wordpress.org/tags/wp-testing-sections), [share results](https://wordpress.org/tags/wp-testing-share-results), **[shortcode](https://wordpress.org/tags/wp-testing-shortcode)**, [sort results](https://wordpress.org/tags/wp-testing-sort-results), [sort scales](https://wordpress.org/tags/wp-testing-sort-scales), **[styling](https://wordpress.org/tags/wp-testing-styling)**, [test page answers](https://wordpress.org/tags/wp-testing-test-page-answers), [time limit](https://wordpress.org/tags/wp-testing-time-limit), [use post category](https://wordpress.org/tags/wp-testing-use-post-category), [user to results](https://wordpress.org/tags/wp-testing-user-to-results), [variable question answer](https://wordpress.org/tags/wp-testing-variable-question-answer). +**Feature**: [alert required questions](https://wordpress.org/tags/wp-testing-alert-required-questions), **[answer rate](https://wordpress.org/tags/wp-testing-answer-rate)**, [answer type number](https://wordpress.org/tags/wp-testing-answer-type-number), [author](https://wordpress.org/tags/wp-testing-author), [chained steps strategy](https://wordpress.org/tags/wp-testing-chained-steps-strategy), [conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin), [custom template](https://wordpress.org/tags/wp-testing-custom-template), [custom text](https://wordpress.org/tags/wp-testing-custom-text), [diagram settings](https://wordpress.org/tags/wp-testing-diagram-settings), **[diagram type](https://wordpress.org/tags/wp-testing-diagram-type)**, **[email results](https://wordpress.org/tags/wp-testing-email-results)**, [export import tests](https://wordpress.org/tags/wp-testing-export-import-tests), **[export results](https://wordpress.org/tags/wp-testing-export-results)**, [expose scores](https://wordpress.org/tags/wp-testing-expose-scores), [fields](https://wordpress.org/tags/wp-testing-fields), [for users](https://wordpress.org/tags/wp-testing-for-users), [formula absolute](https://wordpress.org/tags/wp-testing-formula-absolute), [formula division](https://wordpress.org/tags/wp-testing-formula-division), [formula not](https://wordpress.org/tags/wp-testing-formula-not), [hide scales](https://wordpress.org/tags/wp-testing-hide-scales), [hide test description](https://wordpress.org/tags/wp-testing-hide-test-description), [individual answers](https://wordpress.org/tags/wp-testing-individual-answers), **[low memory](https://wordpress.org/tags/wp-testing-low-memory)**, [multiline questions](https://wordpress.org/tags/wp-testing-multiline-questions), [multiple answers](https://wordpress.org/tags/wp-testing-multiple-answers), [negative scales sum](https://wordpress.org/tags/wp-testing-negative-scales-sum), [page title](https://wordpress.org/tags/wp-testing-page-title), [paid results](https://wordpress.org/tags/wp-testing-paid-results), [paid test](https://wordpress.org/tags/wp-testing-paid-test), [passing counter](https://wordpress.org/tags/wp-testing-passing-counter), [pdf results](https://wordpress.org/tags/wp-testing-pdf-results), [postprocess results](https://wordpress.org/tags/wp-testing-postprocess-results), [public scale names](https://wordpress.org/tags/wp-testing-public-scale-names), [publish homepage](https://wordpress.org/tags/wp-testing-publish-homepage), [question per page](https://wordpress.org/tags/wp-testing-question-per-page), [random question answer order](https://wordpress.org/tags/wp-testing-random-question-answer-order), [redirect](https://wordpress.org/tags/wp-testing-redirect), [reorder questions](https://wordpress.org/tags/wp-testing-reorder-questions), [reorder scales results answers](https://wordpress.org/tags/wp-testing-reorder-scales-results-answers), **[respondents results](https://wordpress.org/tags/wp-testing-respondents-results)**, **[results page](https://wordpress.org/tags/wp-testing-results-page)**, **[rich scales results](https://wordpress.org/tags/wp-testing-rich-scales-results)**, [scale bar orientation](https://wordpress.org/tags/wp-testing-scale-bar-orientation), **[scores decimal](https://wordpress.org/tags/wp-testing-scores-decimal)**, [sections](https://wordpress.org/tags/wp-testing-sections), [share results](https://wordpress.org/tags/wp-testing-share-results), **[shortcode](https://wordpress.org/tags/wp-testing-shortcode)**, [sort results](https://wordpress.org/tags/wp-testing-sort-results), [sort scales](https://wordpress.org/tags/wp-testing-sort-scales), **[styling](https://wordpress.org/tags/wp-testing-styling)**, [test page answers](https://wordpress.org/tags/wp-testing-test-page-answers), [time limit](https://wordpress.org/tags/wp-testing-time-limit), [use post category](https://wordpress.org/tags/wp-testing-use-post-category), [user to results](https://wordpress.org/tags/wp-testing-user-to-results), [variable question answer](https://wordpress.org/tags/wp-testing-variable-question-answer), [workaround](https://wordpress.org/tags/wp-testing-workaround). **Bug**: [answer order](https://wordpress.org/tags/wp-testing-answer-order), [answers disappears](https://wordpress.org/tags/wp-testing-answers-disappears), [apostrophe](https://wordpress.org/tags/wp-testing-apostrophe), [conflict javascript](https://wordpress.org/tags/wp-testing-conflict-javascript), **[conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin)**, **[conflict theme](https://wordpress.org/tags/wp-testing-conflict-theme)**, [cpu limit](https://wordpress.org/tags/wp-testing-cpu-limit), **[database collation](https://wordpress.org/tags/wp-testing-database-collation)**, [database engine](https://wordpress.org/tags/wp-testing-database-engine), [database old password format](https://wordpress.org/tags/wp-testing-database-old-password-format), [database prefix case](https://wordpress.org/tags/wp-testing-database-prefix-case), [form multipart](https://wordpress.org/tags/wp-testing-form-multipart), [formulas](https://wordpress.org/tags/wp-testing-formulas), [individual answers](https://wordpress.org/tags/wp-testing-individual-answers), **[migration](https://wordpress.org/tags/wp-testing-migration)**, [minimal score](https://wordpress.org/tags/wp-testing-minimal-score), **[missing mysqli](https://wordpress.org/tags/wp-testing-missing-mysqli)**, [missing tokenizer](https://wordpress.org/tags/wp-testing-missing-tokenizer), [multiple answers](https://wordpress.org/tags/wp-testing-multiple-answers), [multisite](https://wordpress.org/tags/wp-testing-multisite), [page 404](https://wordpress.org/tags/wp-testing-page-404), [php strict](https://wordpress.org/tags/wp-testing-php-strict), [quick fill](https://wordpress.org/tags/wp-testing-quick-fill), [roles](https://wordpress.org/tags/wp-testing-roles), [shortcode](https://wordpress.org/tags/wp-testing-shortcode), [test description limited](https://wordpress.org/tags/wp-testing-test-description-limited), [uninstall](https://wordpress.org/tags/wp-testing-uninstall), [value names required](https://wordpress.org/tags/wp-testing-value-names-required), **[virus](https://wordpress.org/tags/wp-testing-virus)**. -**Support**: [access](https://wordpress.org/tags/wp-testing-access), [conditional](https://wordpress.org/tags/wp-testing-conditional), [conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin), **[conflict theme](https://wordpress.org/tags/wp-testing-conflict-theme)**, [css](https://wordpress.org/tags/wp-testing-css), [custom template](https://wordpress.org/tags/wp-testing-custom-template), [database config](https://wordpress.org/tags/wp-testing-database-config), [database connection](https://wordpress.org/tags/wp-testing-database-connection), [demo](https://wordpress.org/tags/wp-testing-demo), [diagram type](https://wordpress.org/tags/wp-testing-diagram-type), [dispute](https://wordpress.org/tags/wp-testing-dispute), [export import tests](https://wordpress.org/tags/wp-testing-export-import-tests), [fields](https://wordpress.org/tags/wp-testing-fields), [formula misprint](https://wordpress.org/tags/wp-testing-formula-misprint), **[formulas](https://wordpress.org/tags/wp-testing-formulas)**, [hide results](https://wordpress.org/tags/wp-testing-hide-results), [individual answers](https://wordpress.org/tags/wp-testing-individual-answers), **[low memory](https://wordpress.org/tags/wp-testing-low-memory)**, **[migration](https://wordpress.org/tags/wp-testing-migration)**, [missing mysqli](https://wordpress.org/tags/wp-testing-missing-mysqli), [mobile](https://wordpress.org/tags/wp-testing-mobile), [more example tests for free](https://wordpress.org/tags/wp-testing-more-example-tests-for-free), [multisite](https://wordpress.org/tags/wp-testing-multisite), **[non actual](https://wordpress.org/tags/wp-testing-non-actual)**, [not reproduced](https://wordpress.org/tags/wp-testing-not-reproduced), [publish homepage](https://wordpress.org/tags/wp-testing-publish-homepage), [reorder scales results answers](https://wordpress.org/tags/wp-testing-reorder-scales-results-answers), [respondents results](https://wordpress.org/tags/wp-testing-respondents-results), **[results page](https://wordpress.org/tags/wp-testing-results-page)**, [scores](https://wordpress.org/tags/wp-testing-scores), [server error 503](https://wordpress.org/tags/wp-testing-server-error-503), [shortcode](https://wordpress.org/tags/wp-testing-shortcode), [skip question](https://wordpress.org/tags/wp-testing-skip-question), **[styling](https://wordpress.org/tags/wp-testing-styling)**, [theme customizing](https://wordpress.org/tags/wp-testing-theme-customizing), [translation](https://wordpress.org/tags/wp-testing-translation), [upgrade](https://wordpress.org/tags/wp-testing-upgrade). +**Support**: [access](https://wordpress.org/tags/wp-testing-access), [addon](https://wordpress.org/tags/wp-testing-addon), [conditional](https://wordpress.org/tags/wp-testing-conditional), **[conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin)**, **[conflict theme](https://wordpress.org/tags/wp-testing-conflict-theme)**, [css](https://wordpress.org/tags/wp-testing-css), [custom template](https://wordpress.org/tags/wp-testing-custom-template), [database config](https://wordpress.org/tags/wp-testing-database-config), [database connection](https://wordpress.org/tags/wp-testing-database-connection), [demo](https://wordpress.org/tags/wp-testing-demo), [diagram type](https://wordpress.org/tags/wp-testing-diagram-type), [dispute](https://wordpress.org/tags/wp-testing-dispute), [export import tests](https://wordpress.org/tags/wp-testing-export-import-tests), [export results](https://wordpress.org/tags/wp-testing-export-results), [fields](https://wordpress.org/tags/wp-testing-fields), [formula misprint](https://wordpress.org/tags/wp-testing-formula-misprint), **[formulas](https://wordpress.org/tags/wp-testing-formulas)**, [hide results](https://wordpress.org/tags/wp-testing-hide-results), [individual answers](https://wordpress.org/tags/wp-testing-individual-answers), **[low memory](https://wordpress.org/tags/wp-testing-low-memory)**, **[migration](https://wordpress.org/tags/wp-testing-migration)**, [missing mysqli](https://wordpress.org/tags/wp-testing-missing-mysqli), [mobile](https://wordpress.org/tags/wp-testing-mobile), [more example tests for free](https://wordpress.org/tags/wp-testing-more-example-tests-for-free), [multisite](https://wordpress.org/tags/wp-testing-multisite), **[non actual](https://wordpress.org/tags/wp-testing-non-actual)**, [not reproduced](https://wordpress.org/tags/wp-testing-not-reproduced), [publish homepage](https://wordpress.org/tags/wp-testing-publish-homepage), [reorder scales results answers](https://wordpress.org/tags/wp-testing-reorder-scales-results-answers), [respondents results](https://wordpress.org/tags/wp-testing-respondents-results), **[results page](https://wordpress.org/tags/wp-testing-results-page)**, [scores](https://wordpress.org/tags/wp-testing-scores), [server config](https://wordpress.org/tags/wp-testing-server-config), [server error 503](https://wordpress.org/tags/wp-testing-server-error-503), [shortcode](https://wordpress.org/tags/wp-testing-shortcode), [skip question](https://wordpress.org/tags/wp-testing-skip-question), **[styling](https://wordpress.org/tags/wp-testing-styling)**, [theme conflict](https://wordpress.org/tags/wp-testing-theme-conflict), [theme customizing](https://wordpress.org/tags/wp-testing-theme-customizing), [translation](https://wordpress.org/tags/wp-testing-translation), [upgrade](https://wordpress.org/tags/wp-testing-upgrade). **Other**: [addon](https://wordpress.org/tags/wp-testing-addon), [changelog](https://wordpress.org/tags/wp-testing-changelog), [conflict plugin](https://wordpress.org/tags/wp-testing-conflict-plugin), [fix me for free](https://wordpress.org/tags/wp-testing-fix-me-for-free), [low memory](https://wordpress.org/tags/wp-testing-low-memory), [manual](https://wordpress.org/tags/wp-testing-manual), [non actual](https://wordpress.org/tags/wp-testing-non-actual), [reward](https://wordpress.org/tags/wp-testing-reward), **[scores](https://wordpress.org/tags/wp-testing-scores)**, **[translation](https://wordpress.org/tags/wp-testing-translation)**, [upgrade](https://wordpress.org/tags/wp-testing-upgrade). diff --git a/composer.json b/composer.json index 245ec644..85f8af23 100644 --- a/composer.json +++ b/composer.json @@ -156,30 +156,6 @@ "type": "zip" } } - }, - { - "type": "package", - "package": { - "name": "xrstf/composer-php52", - "version": "v1.100", - "autoload": { - "psr-0": { - "xrstf\\Composer52": "lib/" - } - }, - "scripts": { - "post-install-cmd": [ - "xrstf\\Composer52\\Generator::onPostInstallCmd" - ], - "post-update-cmd": [ - "xrstf\\Composer52\\Generator::onPostInstallCmd" - ] - }, - "dist": { - "url": "https://bitbucket.org/garex/composer-php52/get/upgrade-getAutoloadRealFile-signature.zip", - "type": "zip" - } - } } ] } diff --git a/composer.lock.dist b/composer.lock.dist index bcc345ec..895230a1 100644 --- a/composer.lock.dist +++ b/composer.lock.dist @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "cf4ecf3bd3dbf90671accd98671d131d", - "content-hash": "6e1abb53a726c63055603cb8b03fca88", + "hash": "617c766c15cc0c7a37ad96d17b98cf6c", + "content-hash": "a29878b55574f5f4db7e877534d849b9", "packages": [ { "name": "broofa/node-uuid", @@ -232,27 +232,34 @@ }, { "name": "xrstf/composer-php52", - "version": "v1.100", + "version": "v1.0.20", + "source": { + "type": "git", + "url": "https://github.com/composer-php52/composer-php52.git", + "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8" + }, "dist": { "type": "zip", - "url": "https://bitbucket.org/garex/composer-php52/get/upgrade-getAutoloadRealFile-signature.zip", - "reference": null, - "shasum": null + "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8", + "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8", + "shasum": "" }, "type": "library", + "extra": { + "branch-alias": { + "dev-default": "1.x-dev" + } + }, "autoload": { "psr-0": { "xrstf\\Composer52": "lib/" } }, - "scripts": { - "post-install-cmd": [ - "xrstf\\Composer52\\Generator::onPostInstallCmd" - ], - "post-update-cmd": [ - "xrstf\\Composer52\\Generator::onPostInstallCmd" - ] - } + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "time": "2016-04-16 21:52:24" }, { "name": "yahnis-elsts/plugin-update-checker", diff --git a/js/test-add-answers.js b/js/test-add-answers.js index ba75c085..22dc800f 100644 --- a/js/test-add-answers.js +++ b/js/test-add-answers.js @@ -1,6 +1,6 @@ jQuery(document).ready(function($) { var superBox = $('#wpt_edit_questions'), - globalAnswerLink = superBox.find('a[href=#wpt_answerdiv]'), + globalAnswerLink = superBox.find('a[href="#wpt_answerdiv"]'), globalAnswer = $('#wpt_answerdiv'), globalAnswerHandler = globalAnswer.find('.hndle'), individualAnswers = superBox.find('.wpt-add-individual-answers'), diff --git a/tests/integration-environment/create.sh b/tests/integration-environment/create.sh index 725938e0..ad3c600d 100755 --- a/tests/integration-environment/create.sh +++ b/tests/integration-environment/create.sh @@ -6,7 +6,7 @@ set -e HERE=$(dirname $0) DB_ENGINE=${DB_ENGINE:-InnoDB} DB_CHARSET=${DB_CHARSET:-utf8} -WP_VERSION=${WP_VERSION:-4.4.2} +WP_VERSION=${WP_VERSION:-latest} WP_UPGRADE=${WP_UPGRADE:-0} WP_T_SERVER=${WP_T_SERVER:-http://wpti.dev:8000} PLUGINS=${PLUGINS:-} diff --git a/tests/mocha/test/0-plugin.js b/tests/mocha/test/0-plugin.js index 9707c1bd..a794ae49 100644 --- a/tests/mocha/test/0-plugin.js +++ b/tests/mocha/test/0-plugin.js @@ -73,7 +73,7 @@ describe('Plugin activation', function() { casper.waitForUrl(/activate/, function() { 'Fatal'.should.not.be.textInDOM - '#wp-testing .deactivate a'.should.be.inDOM + '#wp-testing .deactivate a,[data-slug=wp-testing] .deactivate a'.should.be.inDOM }, null, 60000) }) }) diff --git a/tests/mocha/test/z-plugin-deactivation.js b/tests/mocha/test/z-plugin-deactivation.js index 553093d4..dc4ed314 100644 --- a/tests/mocha/test/z-plugin-deactivation.js +++ b/tests/mocha/test/z-plugin-deactivation.js @@ -19,18 +19,18 @@ describe('Plugin deactivation', function() { }) casper.then(function() { - this.click('#wp-testing .deactivate a') + this.click('#wp-testing .deactivate a, [data-slug=wp-testing] .deactivate a') }) casper.then(function() { - '#wp-testing .activate a'.should.be.inDOM - '#wp-testing .delete a'.should.be.inDOM + '#wp-testing .activate a, [data-slug=wp-testing] .activate a'.should.be.inDOM + '#wp-testing .delete a, [data-slug=wp-testing] .delete a'.should.be.inDOM }) }) it('should be deleted', function() { casper.then(function() { - this.click('#wp-testing .delete a') + this.click('#wp-testing .delete a, [data-slug=wp-testing] .delete a') }) casper.waitForUrl(/delete/, function() { @@ -38,7 +38,7 @@ describe('Plugin deactivation', function() { }) casper.then(function() { - '#wp-testing'.should.not.be.inDOM + '#wp-testing, [data-slug=wp-testing]'.should.not.be.inDOM }) }) diff --git a/wp-testing.php b/wp-testing.php index 7484ee79..2991414e 100644 --- a/wp-testing.php +++ b/wp-testing.php @@ -3,7 +3,7 @@ * Plugin Name: Wp-testing * Plugin URI: http://wordpress.org/extend/plugins/wp-testing/ * Description: Helps to create psychological tests. - * Version: 0.18.6 + * Version: 0.18.7 * Author: Alexander Ustimenko * Author URI: http://ustimen.co * License: GPL3