From 916f0a6225ff9f1c7a496de8d67b6e1babab87c7 Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Tue, 9 Nov 2021 15:02:13 +0545 Subject: [PATCH] delete `hasFile` check this is not needed as the lib checks the file existance on `getFileContent` and gives a nice eror message if it does not exist --- tests/acceptance/features/bootstrap/ArchiverContext.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/acceptance/features/bootstrap/ArchiverContext.php b/tests/acceptance/features/bootstrap/ArchiverContext.php index 336cb7a54..4b737f302 100644 --- a/tests/acceptance/features/bootstrap/ArchiverContext.php +++ b/tests/acceptance/features/bootstrap/ArchiverContext.php @@ -102,11 +102,6 @@ class ArchiverContext implements Context { \file_put_contents($tempFile, $this->featureContext->getResponse()->getBody()->getContents()); $archive = UnifiedArchive::open($tempFile); foreach ($expectedFiles->getHash() as $expectedFile) { - Assert::assertTrue( - $archive->hasFile($expectedFile['name']), - __METHOD__ . - " archive does not contain '" . $expectedFile['name'] . "'" - ); Assert::assertEquals( $expectedFile['content'], $archive->getFileContent($expectedFile['name']),