Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasson99 committed Jan 16, 2020
1 parent 1052aeb commit 28695da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions tests/acceptance/features/bootstrap/OccContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ class OccContext implements Context {
*/
private $initialTechPreviewStatus;

/**
* @var array $createdLocalStorage
*/
private $createdLocalStorage;

/**
* @return boolean
*/
Expand Down Expand Up @@ -1135,7 +1130,7 @@ public function theAdminHasAddedRemovedTheApplicableUserForMountUsingTheOccComma
}

/**
* @When the administrator lists all the created local storage using occ command
* @When the administrator lists the local storage using the occ command
*
* @return void
* @throws Exception
Expand All @@ -1152,13 +1147,14 @@ public function userListsLocalStorageMountUsingTheOccCommand() {
* @return void
*/
public function theFollowingLocalStoragesShouldExist(TableNode $mountPoints) {
$createdLocalStorage = [];
$expectedLocalStorages = $mountPoints->getColumnsHash();
$commandOutput = \json_decode($this->featureContext->getStdOutOfOccCommand());
foreach ($commandOutput as $storageEntry) {
$this->createdLocalStorage[$storageEntry->mount_id] = \ltrim($storageEntry->mount_point, '/');
$createdLocalStorage[$storageEntry->mount_id] = \ltrim($storageEntry->mount_point, '/');
}
foreach ($expectedLocalStorages as $expectedStorageEntry) {
Assert::assertContains($expectedStorageEntry['localStorage'], $this->createdLocalStorage);
Assert::assertContains($expectedStorageEntry['localStorage'], $createdLocalStorage);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: create local storage from the command line
And the administrator has created the local storage mount "new_local_storage"
And the administrator has uploaded file with content "this is a file in local storage" to "/local_storage2/file-in-local-storage.txt"
And the administrator has uploaded file with content "new file" to "/new_local_storage/new-file"
When the administrator lists all the created local storage using occ command
When the administrator lists the local storage using the occ command
Then the following local storage should exist
| localStorage |
| local_storage2 |
Expand Down

0 comments on commit 28695da

Please sign in to comment.