Code Duplication    Length = 17-17 lines in 2 locations

packages/options/tests/Manager.php 2 locations

@@ 26-42 (lines=17) @@
23
		$this->assertTrue( $value );
24
	}
25
26
	function test_get_network_option_returns_value() {
27
		\WP_Mock::userFunction( 'get_site_option', array(
28
			'times' => 1,
29
			'args' => array( 'jetpack_network_name', false ),
30
			'return' => true,
31
		) );
32
		\WP_Mock::userFunction( 'is_multisite', array(
33
			'times' => 1,
34
			'args' => array(),
35
			'return' => true,
36
		) );
37
38
		$value = $this->manager->get_option( 'network_name' );
39
40
		// Did Jetpack_Options::get_option() properly return true?
41
		$this->assertTrue( $value );
42
	}
43
44
	function test_get_non_compact_option_returns_value() {
45
		\WP_Mock::userFunction( 'get_option', array(
@@ 44-60 (lines=17) @@
41
		$this->assertTrue( $value );
42
	}
43
44
	function test_get_non_compact_option_returns_value() {
45
		\WP_Mock::userFunction( 'get_option', array(
46
			'times' => 1,
47
			'args' => array( 'jetpack_uncompact_option_name', false ),
48
			'return' => true,
49
		) );
50
		\WP_Mock::userFunction( 'is_multisite', array(
51
			'times' => 1,
52
			'args' => array(),
53
			'return' => false,
54
		) );
55
56
		$value = $this->manager->get_option( 'uncompact_option_name' );
57
58
		// Did Jetpack_Options::get_option() properly return true?
59
		$this->assertTrue( $value );
60
	}
61
62
	function test_delete_non_compact_option_returns_true_when_successfully_deleted() {
63
		\WP_Mock::userFunction( 'get_option', array(