Code Duplication    Length = 9-9 lines in 2 locations

tests/test-rest-categories-controller.php 1 location

@@ 11-19 (lines=9) @@
8
 */
9
class WP_Test_REST_Categories_Controller extends WP_Test_REST_Controller_Testcase {
10
11
	public function setUp() {
12
		parent::setUp();
13
		$this->administrator = $this->factory->user->create( array(
14
			'role' => 'administrator',
15
		) );
16
		$this->subscriber = $this->factory->user->create( array(
17
			'role' => 'subscriber',
18
		) );
19
	}
20
21
	public function test_register_routes() {
22
		$routes = $this->server->get_routes();

tests/test-rest-tags-controller.php 1 location

@@ 11-19 (lines=9) @@
8
 */
9
class WP_Test_REST_Tags_Controller extends WP_Test_REST_Controller_Testcase {
10
11
	public function setUp() {
12
		parent::setUp();
13
		$this->administrator = $this->factory->user->create( array(
14
			'role' => 'administrator',
15
		) );
16
		$this->subscriber = $this->factory->user->create( array(
17
			'role' => 'subscriber',
18
		) );
19
	}
20
21
	public function test_register_routes() {
22
		$routes = $this->server->get_routes();