Code Duplication    Length = 8-8 lines in 2 locations

build/integration/features/bootstrap/Provisioning.php 2 locations

@@ 124-131 (lines=8) @@
121
		$this->currentUser = $previous_user;
122
	}
123
124
	public function userExists($user){
125
		$fullUrl = $this->baseUrl . "v2.php/cloud/users/$user";
126
		$client = new Client();
127
		$options = [];
128
		$options['auth'] = $this->adminUser;
129
130
		$this->response = $client->get($fullUrl, $options);
131
	}
132
133
	/**
134
	 * @Then /^check that user "([^"]*)" belongs to group "([^"]*)"$/
@@ 309-316 (lines=8) @@
306
	}
307
308
309
	public function groupExists($group) {
310
		$fullUrl = $this->baseUrl . "v2.php/cloud/groups/$group";
311
		$client = new Client();
312
		$options = [];
313
		$options['auth'] = $this->adminUser;
314
315
		$this->response = $client->get($fullUrl, $options);
316
	}
317
318
	/**
319
	 * @Given /^group "([^"]*)" exists$/