disable selenium test files

This commit is contained in:
Garvin Hicking 2017-01-02 09:42:37 +01:00
parent 4e8c310156
commit edfc8bcff1
4 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Version 2.1 (November 28th, 2016) Version 2.1 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Allow to set a default category for authors (personal preferences) * Allow to set a default category for authors (personal preferences)
@ -15,6 +15,8 @@ Version 2.1 (November 28th, 2016)
* [Security] For multi-deletion of entries, secure the HTTP referrer * [Security] For multi-deletion of entries, secure the HTTP referrer
output to prevent XSS (Issue #435) output to prevent XSS (Issue #435)
* Disabled Selenium test files unless enabled
Version 2.1-beta2 (September 26th, 2016) Version 2.1-beta2 (September 26th, 2016)
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Improved backend accessibility by hiding iconfont icons for * Improved backend accessibility by hiding iconfont icons for

View File

@ -1,4 +1,8 @@
<?php <?php
if (!isset($GLOBALS['S9Y_SELENIUM_ENABLED'])) {
die('Selenium disabled.');
}
if ( isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) && if ( isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) &&
!isset($_GET['PHPUNIT_SELENIUM_TEST_ID']) && !isset($_GET['PHPUNIT_SELENIUM_TEST_ID']) &&
extension_loaded('xdebug')) { extension_loaded('xdebug')) {

View File

@ -1,4 +1,8 @@
<?php <?php
if (!isset($GLOBALS['S9Y_SELENIUM_ENABLED'])) {
die('Selenium disabled.');
}
require_once 'PHPUnit/Util/FilterIterator.php'; require_once 'PHPUnit/Util/FilterIterator.php';
if (isset($_GET['PHPUNIT_SELENIUM_TEST_ID'])) { if (isset($_GET['PHPUNIT_SELENIUM_TEST_ID'])) {

View File

@ -1,4 +1,8 @@
<?php <?php
if (!isset($GLOBALS['S9Y_SELENIUM_ENABLED'])) {
die('Selenium disabled.');
}
if ( isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) && if ( isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) &&
!isset($_GET['PHPUNIT_SELENIUM_TEST_ID']) && !isset($_GET['PHPUNIT_SELENIUM_TEST_ID']) &&
extension_loaded('xdebug')) { extension_loaded('xdebug')) {