Code Duplication    Length = 7-7 lines in 3 locations

tests/phpunit/tests/user/capabilities.php 3 locations

@@ 1688-1694 (lines=7) @@
1685
	/**
1686
	 * @ticket 38412
1687
	 */
1688
	public function test_user_can_edit_user_meta() {
1689
		wp_set_current_user( self::$users['administrator']->ID );
1690
		if ( is_multisite() ) {
1691
			grant_super_admin( self::$users['administrator']->ID );
1692
		}
1693
		$this->assertTrue( current_user_can( 'edit_user_meta', self::$users['subscriber']->ID, 'foo' ) );
1694
	}
1695
1696
	/**
1697
	 * @ticket 38412
@@ 1715-1721 (lines=7) @@
1712
	/**
1713
	 * @ticket 38412
1714
	 */
1715
	public function test_user_can_delete_user_meta() {
1716
		wp_set_current_user( self::$users['administrator']->ID );
1717
		if ( is_multisite() ) {
1718
			grant_super_admin( self::$users['administrator']->ID );
1719
		}
1720
		$this->assertTrue( current_user_can( 'delete_user_meta', self::$users['subscriber']->ID, 'foo' ) );
1721
	}
1722
1723
	/**
1724
	 * @ticket 38412
@@ 1742-1748 (lines=7) @@
1739
	/**
1740
	 * @ticket 38412
1741
	 */
1742
	public function test_user_can_add_user_meta() {
1743
		wp_set_current_user( self::$users['administrator']->ID );
1744
		if ( is_multisite() ) {
1745
			grant_super_admin( self::$users['administrator']->ID );
1746
		}
1747
		$this->assertTrue( current_user_can( 'add_user_meta', self::$users['subscriber']->ID, 'foo' ) );
1748
	}
1749
1750
	/**
1751
	 * @ticket 38412