Code Duplication    Length = 16-16 lines in 2 locations

projects/plugins/jetpack/tests/php/_inc/lib/test-class.jetpack-tweetstorm-helper.php 2 locations

@@ 1824-1839 (lines=16) @@
1821
	/**
1822
	 * Test that a spacer block starts a new tweet.
1823
	 */
1824
	public function test_spacer_starts_new_tweet() {
1825
		$test_content = 'This is some content.';
1826
		$blocks       = array(
1827
			$this->generateParagraphData( $test_content ),
1828
			$this->generateSpacerData(),
1829
			$this->generateParagraphData( $test_content ),
1830
			$this->generateParagraphData( $test_content ),
1831
		);
1832
1833
		$this->assertTweetGenerated(
1834
			$blocks,
1835
			array( "$test_content", "$test_content\n\n$test_content" ),
1836
			array( false, false ),
1837
			array( array_slice( $blocks, 0, 2 ), array_slice( $blocks, 2, 2 ) )
1838
		);
1839
	}
1840
1841
	/**
1842
	 * Test that a separator block starts a new tweet.
@@ 1844-1859 (lines=16) @@
1841
	/**
1842
	 * Test that a separator block starts a new tweet.
1843
	 */
1844
	public function test_separator_starts_new_tweet() {
1845
		$test_content = 'This is some content.';
1846
		$blocks       = array(
1847
			$this->generateParagraphData( $test_content ),
1848
			$this->generateParagraphData( $test_content ),
1849
			$this->generateSeparatorData(),
1850
			$this->generateParagraphData( $test_content ),
1851
		);
1852
1853
		$this->assertTweetGenerated(
1854
			$blocks,
1855
			array( "$test_content\n\n$test_content", "$test_content" ),
1856
			array( false, false ),
1857
			array( array_slice( $blocks, 0, 3 ), array_slice( $blocks, 3, 1 ) )
1858
		);
1859
	}
1860
1861
	/**
1862
	 * Test that an embedded tweet block will be appended to the previous tweet.