.dev/tests/functional/class_form_real_test.Test.php
Method test_validate_multi_select
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_validate_multi_select()
{
$_SERVER['REQUEST_METHOD'] = 'POST';
$params = ['do_not_remove_errors' => 1];
Method test_validate_custom_error
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_validate_custom_error()
{
$_SERVER['REQUEST_METHOD'] = 'POST';
$params = ['do_not_remove_errors' => 1];
Method test_insert_if_ok
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'));
Method test_validate_post_empty_value
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_validate_post_empty_value()
{
$_SERVER['REQUEST_METHOD'] = 'POST';
$params = ['do_not_remove_errors' => 1];