Code Duplication    Length = 6-8 lines in 2 locations

tests/test-rest-controller.php 2 locations

@@ 113-118 (lines=6) @@
110
		);
111
	}
112
113
	public function test_get_endpoint_args_for_item_schema_description() {
114
		$controller = new WP_REST_Test_Controller();
115
		$args       = $controller->get_endpoint_args_for_item_schema();
116
		$this->assertEquals( 'A pretty string.', $args['somestring']['description'] );
117
		$this->assertFalse( isset( $args['someinteger']['description'] ) );
118
	}
119
120
	public function test_get_endpoint_args_for_item_schema_arg_options() {
121
@@ 120-127 (lines=8) @@
117
		$this->assertFalse( isset( $args['someinteger']['description'] ) );
118
	}
119
120
	public function test_get_endpoint_args_for_item_schema_arg_options() {
121
122
		$controller = new WP_REST_Test_Controller();
123
		$args       = $controller->get_endpoint_args_for_item_schema();
124
125
		$this->assertFalse( $args['someargoptions']['required'] );
126
		$this->assertEquals( '__return_true', $args['someargoptions']['sanitize_callback'] );
127
	}
128
129
	public function test_get_endpoint_args_for_item_schema_default_value() {
130