Code Duplication    Length = 10-10 lines in 2 locations

packages/lazy-images/tests/php/test_class.lazy-images.php 2 locations

@@ 342-351 (lines=10) @@
339
	 *
340
	 * @dataProvider get_dont_process_images_with_classes_data
341
	 */
342
	public function test_dont_process_images_with_classes( $input, $should_skip = true ) {
343
		$instance = Jetpack_Lazy_Images::instance();
344
		$output   = $instance->add_image_placeholders( $input );
345
346
		if ( $should_skip ) {
347
			$this->assertNotContains( 'srcset="placeholder.jpg"', $output );
348
		} else {
349
			$this->assertContains( 'srcset="placeholder.jpg"', $output );
350
		}
351
	}
352
353
	/**
354
	 * Data provider for test.
@@ 381-390 (lines=10) @@
378
	 *
379
	 * @dataProvider get_dont_process_images_with_skip_lazy_data_attribute_data
380
	 */
381
	public function test_dont_process_images_with_skip_lazy_data_attribute( $input, $should_skip = true ) {
382
		$instance = Jetpack_Lazy_Images::instance();
383
		$output   = $instance->add_image_placeholders( $input );
384
385
		if ( $should_skip ) {
386
			$this->assertNotContains( 'srcset="placeholder.jpg"', $output );
387
		} else {
388
			$this->assertContains( 'srcset="placeholder.jpg"', $output );
389
		}
390
	}
391
392
	/**
393
	 * Data provider for test.