Code Duplication    Length = 3-3 lines in 2 locations

tests/core/panel.php 1 location

@@ 120-122 (lines=3) @@
117
		$panel = new WP_Customize_Panel( $this->manager, 'foo', $args );
118
		$data = $panel->json();
119
		$this->assertEquals( 'foo', $data['id'] );
120
		foreach ( array( 'title', 'description', 'priority', 'type' ) as $key ) {
121
			$this->assertEquals( $args[ $key ], $data[ $key ] );
122
		}
123
		$this->assertEmpty( $data['content'] );
124
		$this->assertTrue( $data['active'] );
125
		$this->assertInternalType( 'int', $data['instanceNumber'] );

tests/core/section.php 1 location

@@ 127-129 (lines=3) @@
124
		$section = new WP_Customize_Section( $this->manager, 'foo', $args );
125
		$data = $section->json();
126
		$this->assertEquals( 'foo', $data['id'] );
127
		foreach ( array( 'title', 'description', 'priority', 'panel', 'type' ) as $key ) {
128
			$this->assertEquals( $args[ $key ], $data[ $key ] );
129
		}
130
		$this->assertEmpty( $data['content'] );
131
		$this->assertTrue( $data['active'] );
132
		$this->assertInternalType( 'int', $data['instanceNumber'] );