diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-22 15:43:57 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-22 15:43:57 +0200 |
commit | 83e10b7a736f7cfa9c933d0476b4784a062bb222 (patch) | |
tree | fbf12e45a151609210a8f07dc505fd8fc771d519 /build/integration/features | |
parent | 4ed296db9f452985bc129409147594a155c96818 (diff) | |
download | nextcloud-server-83e10b7a736f7cfa9c933d0476b4784a062bb222.tar.gz nextcloud-server-83e10b7a736f7cfa9c933d0476b4784a062bb222.zip |
Adjust integration test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build/integration/features')
-rw-r--r-- | build/integration/features/bootstrap/RemoteContext.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/RemoteContext.php b/build/integration/features/bootstrap/RemoteContext.php index 38f3ab76487..69ebad43208 100644 --- a/build/integration/features/bootstrap/RemoteContext.php +++ b/build/integration/features/bootstrap/RemoteContext.php @@ -138,7 +138,13 @@ class RemoteContext implements Context { * @param string $value */ public function hasCapability($key, $value) { - $capabilities = $this->getApiClient()->getCapabilities(); + try { + $capabilities = $this->getApiClient()->getCapabilities(); + } catch (\Exception $e) { + Assert::assertInstanceOf($value, $e); + $this->lastException = $e; + return; + } $current = $capabilities; $parts = explode('.', $key); foreach ($parts as $part) { |