Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Jun 10, 2020
1 parent d9748d2 commit d994276
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,34 @@ protected function setUp(): void
}

/**
* @magentoConfigFixture default_store sales/gift_options/allow_items 1
* @magentoConfigFixture default_store sales/gift_options/allow_items 0
* @magentoApiDataFixture Magento/GiftMessage/_files/guest/quote_with_item_message.php
* @throws NoSuchEntityException
* @throws Exception
*/
public function testGiftMessageCartForItem()
public function testGiftMessageCartForItemNotAllow()
{
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_guest_order_with_gift_message');
foreach ($this->requestCartResult($maskedQuoteId)['cart']['items'] as $item) {
self::assertArrayHasKey('gift_message', $item);
self::assertArrayHasKey('to', $item['gift_message']);
self::assertArrayHasKey('from', $item['gift_message']);
self::assertArrayHasKey('message', $item['gift_message']);
self::assertNull($item['gift_message']);
}
}

/**
* @magentoConfigFixture default_store sales/gift_options/allow_items 0
* @magentoConfigFixture default_store sales/gift_options/allow_items 1
* @magentoApiDataFixture Magento/GiftMessage/_files/guest/quote_with_item_message.php
* @throws NoSuchEntityException
* @throws Exception
*/
public function testGiftMessageCartForItemNotAllow()
public function testGiftMessageCartForItem()
{
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_guest_order_with_gift_message');
foreach ($this->requestCartResult($maskedQuoteId)['cart']['items'] as $item) {
self::assertArrayHasKey('gift_message', $item);
self::assertNull($item['gift_message']);
self::assertArrayHasKey('to', $item['gift_message']);
self::assertArrayHasKey('from', $item['gift_message']);
self::assertArrayHasKey('message', $item['gift_message']);
}
}

Expand Down

0 comments on commit d994276

Please sign in to comment.