.dev/tests/functional/class_form_real_test.Test.php

Summary

Maintainability
C
7 hrs
Test Coverage

Method test_validate_multi_select has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function test_validate_multi_select()
    {
        $_SERVER['REQUEST_METHOD'] = 'POST';
        $params = ['do_not_remove_errors' => 1];

Severity: Major
Found in .dev/tests/functional/class_form_real_test.Test.php - About 2 hrs to fix

    Method test_validate_custom_error has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function test_validate_custom_error()
        {
            $_SERVER['REQUEST_METHOD'] = 'POST';
            $params = ['do_not_remove_errors' => 1];
    
    
    Severity: Minor
    Found in .dev/tests/functional/class_form_real_test.Test.php - About 1 hr to fix

      Method test_insert_if_ok has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function test_insert_if_ok()
          {
              $this->assertFalse((bool) self::utils()->table_exists('static_pages'));
              $this->assertEmpty(self::db()->from('static_pages')->get());
              $this->assertTrue((bool) self::utils()->table_exists('static_pages'));
      Severity: Minor
      Found in .dev/tests/functional/class_form_real_test.Test.php - About 1 hr to fix

        Method test_validate_post_empty_value has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function test_validate_post_empty_value()
            {
                $_SERVER['REQUEST_METHOD'] = 'POST';
                $params = ['do_not_remove_errors' => 1];
        
        
        Severity: Minor
        Found in .dev/tests/functional/class_form_real_test.Test.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status