diff --git a/.env.testing b/.env.testing index 0bf105f10e081da1df165fc1221a96d779f428e5..2e2439fb86e393d989f62a1adfeb989d7b8e8bc2 100644 --- a/.env.testing +++ b/.env.testing @@ -12,7 +12,7 @@ TEST_DB_PASSWORD="mysql" TEST_TABLE_PREFIX="wp_" TEST_SITE_WP_URL="http://${WOOTESTS_IP}" TEST_SITE_WP_DOMAIN="${WOOTESTS_IP}" -TEST_SITE_ADMIN_EMAIL="grola@seostudio.pl" +TEST_SITE_ADMIN_EMAIL="grola@octolize.dev" TEST_SITE_ADMIN_USERNAME="admin" TEST_SITE_ADMIN_PASSWORD="admin" SELENIUM_HOST="chrome" diff --git a/src/WPDesk/Notice/AjaxHandler.php b/src/WPDesk/Notice/AjaxHandler.php index 64c871754f1cfab287f9bfaff40f13a22ed72dae..fd864cf2077da32bc5645c5f18226b0afc0d112a 100644 --- a/src/WPDesk/Notice/AjaxHandler.php +++ b/src/WPDesk/Notice/AjaxHandler.php @@ -79,7 +79,7 @@ class AjaxHandler implements HookablePluginDependant { $noticeName = sanitize_text_field( $_POST[ self::POST_FIELD_NOTICE_NAME ] ); $option_name = PermanentDismissibleNotice::OPTION_NAME_PREFIX . $noticeName; - ajax_check_referer( $option_name, self::POST_FIELD_SECURITY ); + check_ajax_referer( $option_name, self::POST_FIELD_SECURITY ); if ( ! current_user_can( 'edit_posts' ) ) { wp_send_json_error(); diff --git a/tests/codeception/tests/integration.suite.yml b/tests/codeception/tests/integration.suite.yml index 1f3f494f6ddd47c015a60728d2d9ed14ddb5551a..25ef607c1f3de3ce2340ad644c5ee1059b6e602d 100644 --- a/tests/codeception/tests/integration.suite.yml +++ b/tests/codeception/tests/integration.suite.yml @@ -32,7 +32,6 @@ modules: dbPassword: "%TEST_SITE_DB_PASSWORD%" isolatedInstall: false loadOnly: false - skipPluggables: false tablePrefix: "%TEST_SITE_TABLE_PREFIX%" plugins: [] activatePlugins: [] diff --git a/tests/codeception/tests/integration/AjaxHandlerTest.php b/tests/codeception/tests/integration/AjaxHandlerTest.php index 9967080e5f2767bb5db60d0e4c9b0baa4d7d396d..c0f40f9992362437d5efe3657ea9a396eef03657 100644 --- a/tests/codeception/tests/integration/AjaxHandlerTest.php +++ b/tests/codeception/tests/integration/AjaxHandlerTest.php @@ -91,7 +91,6 @@ class AjaxHandlerTest extends WPTestCase { } public function testShoulfNotProcessAjaxNoticeDismissWhenInvalidNonce() { - defince( 'DOING_AJAX', true ); $_POST[ AjaxHandler::POST_FIELD_NOTICE_NAME ] = self::NOTICE_NAME; $_POST[ AjaxHandler::POST_FIELD_SECURITY ] = wp_create_nonce(); diff --git a/tests/codeception/wpdesk.yml b/tests/codeception/wpdesk.yml index 870a58cd2df9c7068dc7ac1101dc3c7d0c639a83..b0bbcb51c9122ff5fb21be7ac0cc2f5e9022771a 100644 --- a/tests/codeception/wpdesk.yml +++ b/tests/codeception/wpdesk.yml @@ -3,6 +3,7 @@ plugin-file: none plugin-title: none plugins: repository: + - woocommerce local: activate: prepare-database: