Skip to content

Commit 2737ee2

Browse files
committed
cleanup
1 parent 652f312 commit 2737ee2

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

tests/phpunit/traits/test-class-input-sanitizer.php

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -555,32 +555,6 @@ public function provider_integer_values() {
555555
];
556556
}
557557

558-
/**
559-
* Test get_sanitized_post with empty string.
560-
*
561-
* @return void
562-
*/
563-
public function test_get_sanitized_post_empty_string() {
564-
$_POST['test_key'] = '';
565-
566-
$result = $this->mock_class->public_get_sanitized_post( 'test_key' );
567-
568-
$this->assertEquals( '', $result );
569-
}
570-
571-
/**
572-
* Test get_sanitized_get with whitespace.
573-
*
574-
* @return void
575-
*/
576-
public function test_get_sanitized_get_whitespace() {
577-
$_GET['test_key'] = ' test value ';
578-
579-
$result = $this->mock_class->public_get_sanitized_get( 'test_key' );
580-
581-
// sanitize_text_field should trim whitespace.
582-
$this->assertEquals( 'test value', $result );
583-
}
584558

585559
/**
586560
* Test get_sanitized_get_array with non-array value.
@@ -625,20 +599,6 @@ public function test_get_sanitized_get_array_nested() {
625599
$this->assertCount( 3, $result );
626600
}
627601

628-
/**
629-
* Test get_sanitized_post with special characters.
630-
*
631-
* @return void
632-
*/
633-
public function test_get_sanitized_post_special_chars() {
634-
$_POST['test_key'] = 'Test & Value "with" <tags>';
635-
636-
$result = $this->mock_class->public_get_sanitized_post( 'test_key' );
637-
638-
// Should escape special characters.
639-
$this->assertStringNotContainsString( '<tags>', $result );
640-
}
641-
642602
/**
643603
* Test get_sanitized_request with unicode.
644604
*
@@ -652,20 +612,6 @@ public function test_get_sanitized_request_unicode() {
652612
$this->assertEquals( '日本語テスト', $result );
653613
}
654614

655-
/**
656-
* Test get_sanitized_post_int with very large number.
657-
*
658-
* @return void
659-
*/
660-
public function test_get_sanitized_post_int_large_number() {
661-
$_POST['test_key'] = '999999999';
662-
663-
$result = $this->mock_class->public_get_sanitized_post_int( 'test_key' );
664-
665-
$this->assertEquals( 999999999, $result );
666-
$this->assertIsInt( $result );
667-
}
668-
669615
/**
670616
* Test get_sanitized_post_array with mixed content.
671617
*

0 commit comments

Comments
 (0)