Skip to content

Commit 8902c8f

Browse files
committed
LYNX-319: Fixed tests
1 parent 4bb425a commit 8902c8f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/AuthenticationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class AuthenticationTest extends GraphQlAbstract
4949
}
5050
QUERY;
5151

52+
/**
53+
* @var CustomerTokenServiceInterface
54+
*/
5255
private $tokenService;
5356

5457
protected function setUp(): void

dev/tests/api-functional/testsuite/Magento/GraphQl/CustomerGraphQl/Model/Resolver/CustomerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use Magento\TestFramework\Fixture\DataFixture;
2727
use Magento\TestFramework\Helper\Bootstrap;
2828
use Magento\TestFramework\TestCase\GraphQl\ResolverCacheAbstract;
29-
use Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException;
3029

3130
/**
3231
* Test for customer resolver cache
@@ -542,7 +541,7 @@ public function testGuestQueryingCustomerDoesNotGenerateResolverCacheEntry()
542541
$query
543542
);
544543
$this->fail('Expected exception not thrown');
545-
} catch (ResponseContainsErrorsException $e) {
544+
} catch (\Exception $e) {
546545
// expected exception
547546
}
548547

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testGetCustomerCartWithNoCustomerToken()
141141
public function testGetCustomerCartAfterTokenRevoked()
142142
{
143143
$this->expectException(\Exception::class);
144-
$this->expectExceptionMessage('The request is allowed for logged in customer');
144+
$this->expectExceptionMessage('User token has been revoked');
145145

146146
$customerCartQuery = $this->getCustomerCartQuery();
147147
$headers = $this->getHeaderMap();

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/AddWishlistItemsToCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testAddItemsToCartForGuestUser(): void
145145

146146
$query = $this->getQuery($wishlistId, $itemId);
147147

148-
$this->graphQlMutation($query, [], '', ['Authorization' => 'Bearer test_token']);
148+
$this->graphQlMutation($query);
149149
}
150150

151151
/**

0 commit comments

Comments
 (0)