Commit 173a3fe0 authored by minakshiPh's avatar minakshiPh Committed by elachlan

Issue #2798991 by minakshiPh, naveenvalecha, shruti1803, rasikap, keshav.k,...

Issue #2798991 by minakshiPh, naveenvalecha, shruti1803, rasikap, keshav.k, Yogesh Pawar: Fix coding standards & replace the deprecated methods
parent 78b1c09c
......@@ -256,6 +256,7 @@ function image_captcha_captcha($op, $captcha_type = '', $captcha_sid = NULL) {
case CAPTCHA_DEFAULT_VALIDATION_CASE_SENSITIVE:
$result['captcha_validate'] = 'captcha_validate_ignore_spaces';
break;
case CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE:
$result['captcha_validate'] = 'captcha_validate_case_insensitive_ignore_spaces';
break;
......
......@@ -299,7 +299,7 @@ class ImageCaptchaSettingsForm extends ConfigFormBase {
* general form function image_captcha_settings_form with some
* specific logic.
*
* @return array $form
* @return array
* The font settings specific form elements.
*/
protected function settingsDotSection() {
......
......@@ -8,14 +8,16 @@ use Drupal\field\Entity\FieldConfig;
use Drupal\simpletest\WebTestBase;
/**
* TODO: write test for CAPTCHAs on admin pages
* TODO: test for default challenge type
* TODO: test about placement (comment form, node forms, log in form, etc)
* TODO: test if captcha_cron does it work right
* TODO: test custom CAPTCHA validation stuff
* TODO: test if entry on status report (Already X blocked form submissions)
* TODO: test space ignoring validation of image CAPTCHA
* TODO: refactor the 'comment_body[0][value]' stuff.
* The TODO list.
*
* @todo write test for CAPTCHAs on admin pages.
* @todo test for default challenge type.
* @todo test about placement (comment form, node forms, log in form, etc).
* @todo test if captcha_cron does it work right.
* @todo test custom CAPTCHA validation stuff.
* @todo test if entry on status report (Already X blocked form submissions).
* @todo test space ignoring validation of image CAPTCHA.
* @todo refactor the 'comment_body[0][value]' stuff.
*/
/**
......@@ -43,7 +45,9 @@ abstract class CaptchaBaseWebTestCase extends WebTestBase {
const CAPTCHA_UNKNOWN_CSID_ERROR_MESSAGE = 'CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists.';
/**
* @var [string] Modules to install for this Test class.
* Modules to install for this Test class.
*
* @var array
*/
public static $modules = ['captcha', 'comment'];
......
......@@ -10,7 +10,9 @@ namespace Drupal\captcha\Tests;
class CaptchaCacheTestCase extends CaptchaBaseWebTestCase {
/**
* @tag array Modules to install for this Test class.
* Modules to install for this Test class.
*
* @var array
*/
public static $modules = ['block', 'image_captcha'];
......
......@@ -13,7 +13,9 @@ use Drupal\simpletest\WebTestBase;
class CaptchaCronTestCase extends WebTestBase {
/**
* @var [string] Modules to install for this Test class.
* Modules to install for this Test class.
*
* @var array
*/
public static $modules = ['captcha'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment