Skip to content

Commit d3a22e9

Browse files
author
Valeriy Nayda
committed
GraphQL-176: Show only active CMS Blocks
-- Fix static tests
1 parent 6d984eb commit d3a22e9

File tree

3 files changed

+8
-2
lines changed
  • app/code/Magento/CmsGraphQl/Model/Resolver
  • dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl

3 files changed

+8
-2
lines changed

app/code/Magento/CmsGraphQl/Model/Resolver/Blocks.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function resolve(
5555
}
5656

5757
/**
58+
* Get block identifiers
59+
*
5860
* @param array $args
5961
* @return string[]
6062
* @throws GraphQlInputException
@@ -69,6 +71,8 @@ private function getBlockIdentifiers(array $args): array
6971
}
7072

7173
/**
74+
* Get blocks data
75+
*
7276
* @param array $blockIdentifiers
7377
* @return array
7478
* @throws GraphQlNoSuchEntityException

app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider/Block.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function __construct(
4040
}
4141

4242
/**
43+
* Get block data
44+
*
4345
* @param string $blockIdentifier
4446
* @return array
4547
* @throws NoSuchEntityException

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class Client
2929
private $json;
3030

3131
/**
32-
* CurlClient constructor.
33-
*
3432
* @param CurlClient|null $curlClient
3533
* @param JsonSerializer|null $json
3634
*/
@@ -81,6 +79,8 @@ public function postQuery(string $query, array $variables = [], string $operatio
8179
}
8280

8381
/**
82+
* Process errors
83+
*
8484
* @param array $responseBodyArray
8585
* @throws \Exception
8686
*/

0 commit comments

Comments
 (0)