Code Duplication    Length = 9-9 lines in 4 locations

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

@@ 422-430 (lines=9) @@
419
	 * @Then /^users returned are$/
420
	 * @param \Behat\Gherkin\Node\TableNode|null $usersList
421
	 */
422
	public function theUsersShouldBe($usersList) {
423
		if ($usersList instanceof \Behat\Gherkin\Node\TableNode) {
424
			$users = $usersList->getRows();
425
			$usersSimplified = $this->simplifyArray($users);
426
			$respondedArray = $this->getArrayOfUsersResponded($this->response);
427
			PHPUnit_Framework_Assert::assertEquals($usersSimplified, $respondedArray, "", 0.0, 10, true);
428
		}
429
430
	}
431
432
	/**
433
	 * @Then /^groups returned are$/
@@ 436-444 (lines=9) @@
433
	 * @Then /^groups returned are$/
434
	 * @param \Behat\Gherkin\Node\TableNode|null $groupsList
435
	 */
436
	public function theGroupsShouldBe($groupsList) {
437
		if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) {
438
			$groups = $groupsList->getRows();
439
			$groupsSimplified = $this->simplifyArray($groups);
440
			$respondedArray = $this->getArrayOfGroupsResponded($this->response);
441
			PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray, "", 0.0, 10, true);
442
		}
443
444
	}
445
446
	/**
447
	 * @Then /^subadmin groups returned are$/
@@ 450-458 (lines=9) @@
447
	 * @Then /^subadmin groups returned are$/
448
	 * @param \Behat\Gherkin\Node\TableNode|null $groupsList
449
	 */
450
	public function theSubadminGroupsShouldBe($groupsList) {
451
		if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) {
452
			$groups = $groupsList->getRows();
453
			$groupsSimplified = $this->simplifyArray($groups);
454
			$respondedArray = $this->getArrayOfSubadminsResponded($this->response);
455
			PHPUnit_Framework_Assert::assertEquals($groupsSimplified, $respondedArray, "", 0.0, 10, true);
456
		}
457
458
	}
459
460
	/**
461
	 * @Then /^apps returned are$/
@@ 464-472 (lines=9) @@
461
	 * @Then /^apps returned are$/
462
	 * @param \Behat\Gherkin\Node\TableNode|null $appList
463
	 */
464
	public function theAppsShouldBe($appList) {
465
		if ($appList instanceof \Behat\Gherkin\Node\TableNode) {
466
			$apps = $appList->getRows();
467
			$appsSimplified = $this->simplifyArray($apps);
468
			$respondedArray = $this->getArrayOfAppsResponded($this->response);
469
			PHPUnit_Framework_Assert::assertEquals($appsSimplified, $respondedArray, "", 0.0, 10, true);
470
		}
471
472
	}
473
474
	/**
475
	 * @Then /^subadmin users returned are$/