Skip to content

Commit 7586fce

Browse files
authored
tests(coder): Update Coder to 8.3.11 (#1103)
1 parent 8e4b807 commit 7586fce

22 files changed

+31
-31
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ install:
105105
phpstan/phpstan-phpunit:^0.12
106106

107107
# Install PHPCS to check for Drupal coding standards.
108-
- travis_retry composer global require drupal/coder:8.3.10
108+
- travis_retry composer global require drupal/coder:8.3.11
109109
- $HOME/.config/composer/vendor/bin/phpcs --config-set installed_paths $HOME/.config/composer/vendor/drupal/coder/coder_sniffer
110110

111111
script:

src/Entity/Server.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function configuration() {
226226
}
227227

228228
/**
229-
* TODO: Handle this through configuration (e.g. a context value).
229+
* @todo Handle this through configuration (e.g. a context value).
230230
*
231231
* Returns to root value to use when resolving queries against the schema.
232232
*
@@ -302,7 +302,7 @@ protected function getContext(SchemaPluginInterface $schema, array $config) {
302302
}
303303

304304
/**
305-
* TODO: Handle this through configuration on the server.
305+
* @todo Handle this through configuration on the server.
306306
*
307307
* Returns the default field resolver.
308308
*
@@ -348,7 +348,7 @@ protected function getErrorFormatter() {
348348
}
349349

350350
/**
351-
* TODO: Handle this through configurable plugins on the server.
351+
* @todo Handle this through configurable plugins on the server.
352352
*
353353
* Returns the error handler.
354354
*
@@ -438,7 +438,7 @@ public function getSortedPersistedQueryInstances() {
438438
}
439439

440440
/**
441-
* TODO: Handle this through configurable plugins on the server.
441+
* @todo Handle this through configurable plugins on the server.
442442
*
443443
* Returns a callable for loading persisted queries.
444444
*
@@ -460,7 +460,7 @@ protected function getPersistedQueryLoader() {
460460
}
461461

462462
/**
463-
* TODO: Handle this through configurable plugins on the server.
463+
* @todo Handle this through configurable plugins on the server.
464464
*
465465
* Returns the validation rules to use for the query.
466466
*

src/GraphQL/Execution/Executor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ protected function doExecuteUncached() {
264264
*/
265265
protected function cachePrefix() {
266266
// Sorting the variables and extensions will cause fewer cache vectors.
267-
// TODO: Should we try to sort these recursively?
267+
// @todo Should we try to sort these recursively?
268268
$variables = $this->variables ?: [];
269269
ksort($variables);
270-
// TODO: Should we submit a pull request to also pass the extensions in the
270+
// @todo Should we submit a pull request to also pass the extensions in the
271271
// executor?
272272
$extensions = $this->context->getOperation()->extensions ?: [];
273273
ksort($extensions);

src/GraphQL/Resolver/Path.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use GraphQL\Type\Definition\ResolveInfo;
1414

1515
/**
16-
* @TODO: Delete this resolver. This is a plugin already.
16+
* @todo Delete this resolver. This is a plugin already.
1717
*/
1818
class Path implements ResolverInterface {
1919

src/GraphQL/ResolverRegistryInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function addFieldResolver($type, $field, ResolverInterface $resolver);
4747
public function getFieldResolver($type, $field);
4848

4949
/**
50-
* TODO: Type resolvers should also get their own interface.
50+
* @todo Type resolvers should also get their own interface.
5151
*
5252
* @param string $abstract
5353
* @param callable $resolver

src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function resolveField(FieldContext $field) {
4040
throw new \LogicException('Missing data producer resolve method.');
4141
}
4242

43-
// TODO: The field context should probably be the first argument.
43+
// @todo The field context should probably be the first argument.
4444
$context = $this->getContextValues();
4545
return call_user_func_array(
4646
[$this, 'resolve'],

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkAttribute.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
88

99
/**
10-
* TODO: Fix input context type.
10+
* @todo Fix input context type.
1111
*
1212
* @DataProducer(
1313
* id = "menu_link_attribute",

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkDescription.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
77

88
/**
9-
* TODO: Fix input context type.
9+
* @todo Fix input context type.
1010
*
1111
* @DataProducer(
1212
* id = "menu_link_description",

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkExpanded.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
77

88
/**
9-
* TODO: Fix input context type.
9+
* @todo Fix input context type.
1010
*
1111
* @DataProducer(
1212
* id = "menu_link_expanded",

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkLabel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
77

88
/**
9-
* TODO: Fix input context type.
9+
* @todo Fix input context type.
1010
*
1111
* @DataProducer(
1212
* id = "menu_link_label",

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkUrl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
77

88
/**
9-
* TODO: Fix input and output context type.
9+
* @todo Fix input and output context type.
1010
*
1111
* @DataProducer(
1212
* id = "menu_link_url",

src/Plugin/GraphQL/DataProducer/Menu/MenuLinks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Symfony\Component\DependencyInjection\ContainerInterface;
1414

1515
/**
16-
* TODO: Fix output context type.
16+
* @todo Fix output context type.
1717
*
1818
* @DataProducer(
1919
* id = "menu_links",

src/Plugin/GraphQL/DataProducer/Menu/MenuTree/MenuTreeLink.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
77

88
/**
9-
* TODO: Fix input and output context type.
9+
* @todo Fix input and output context type.
1010
*
1111
* @DataProducer(
1212
* id = "menu_tree_link",

src/Plugin/GraphQL/DataProducer/Menu/MenuTree/MenuTreeSubtree.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
88

99
/**
10-
* TODO: Fix input and output context type.
10+
* @todo Fix input and output context type.
1111
*
1212
* @DataProducer(
1313
* id = "menu_tree_subtree",

src/Plugin/GraphQL/DataProducer/Routing/RouteLoad.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\DependencyInjection\ContainerInterface;
1111

1212
/**
13-
* TODO: Fix the type of the output context.
13+
* @todo Fix the type of the output context.
1414
*
1515
* @DataProducer(
1616
* id = "route_load",

src/Plugin/GraphQL/DataProducer/Routing/Url/UrlPath.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
88

99
/**
10-
* TODO: Fix the type of the input context.
10+
* @todo Fix the type of the input context.
1111
*
1212
* @DataProducer(
1313
* id = "url_path",

src/Plugin/GraphQL/Schema/ComposableSchema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
9898
* {@inheritdoc}
9999
*/
100100
public function validateConfigurationForm(array &$form, FormStateInterface $formState) {
101-
// TODO: Validate dependencies between extensions.
101+
// @todo Validate dependencies between extensions.
102102
}
103103

104104
/**

src/Plugin/SchemaPluginInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getSchema(ResolverRegistryInterface $registry);
2222
/**
2323
* Retrieves the resolver registry.
2424
*
25-
* TODO: Instead, this should be configuration.
25+
* @todo Instead, this should be configuration.
2626
*
2727
* @return \Drupal\graphql\GraphQL\ResolverRegistryInterface
2828
* The resolver registry.

tests/src/Kernel/DataProducer/Entity/Fields/Image/ImageDerivativeTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testImageDerivative() {
7676
$result
7777
);
7878

79-
// TODO: Add cache checks.
79+
// @todo Add cache checks.
8080
// $this->assertContains('config:image.style.test_style',
8181
// $metadata->getCacheTags());
8282
// $this->assertContains('test_tag', $metadata->getCacheTags());
@@ -89,7 +89,7 @@ public function testImageDerivative() {
8989

9090
$this->assertNull($result);
9191

92-
// TODO: Add cache checks.
92+
// @todo Add cache checks.
9393
// $this->assertContains('test_tag_forbidden',
9494
// $metadata->getCacheTags());
9595
}

tests/src/Kernel/DataProducer/Entity/Fields/Image/ImageUrlTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testImageUrl() {
4949

5050
$this->assertEquals($this->file_url, $result);
5151

52-
// TODO: Add cache checks.
52+
// @todo Add cache checks.
5353
// $this->assertContains('test_tag', $metadata->getCacheTags());
5454
// Test that we do not get a file we don't have access to, but the cache
5555
// tags are still added.
@@ -59,7 +59,7 @@ public function testImageUrl() {
5959

6060
$this->assertNull($result);
6161

62-
// TODO: Add cache checks.
62+
// @todo Add cache checks.
6363
// $this->assertContains('test_tag_forbidden',
6464
// $metadata->getCacheTags());
6565
}

tests/src/Kernel/DataProducer/EntityTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function testResolveUnknownEntityLoad() {
332332
'id' => 0,
333333
]);
334334

335-
// TODO: Add metadata check.
335+
// @todo Add metadata check.
336336
// $this->assertContains('node_list', $metadata->getCacheTags());
337337
$this->assertNull($result);
338338
}
@@ -347,7 +347,7 @@ public function testResolveMismatchEntityLoad() {
347347
'bundles' => ['otherbundle'],
348348
]);
349349

350-
// TODO: Add metadata check.
350+
// @todo Add metadata check.
351351
// $this->assertContains('node:1', $metadata->getCacheTags());
352352
$this->assertNull($result);
353353
}
@@ -375,7 +375,7 @@ public function testResolveEntityRendered() {
375375
'mode' => 'default',
376376
]);
377377

378-
// TODO: Add metadata check.
378+
// @todo Add metadata check.
379379
// $this->assertContains('node:1', $metadata->getCacheTags());
380380
$this->assertStringContainsString('<a href="/node/1" rel="bookmark"><span>' . $this->node->getTitle() . '</span>', $result);
381381
}

tests/src/Kernel/DataProducer/Routing/RouteEntityTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function testRouteEntity() {
206206
// and the 4xx-response cache tags.
207207
$this->assertNull($result);
208208

209-
// TODO: Add cache checks.
209+
// @todo Add cache checks.
210210
// $this->assertContains('node_list', $metadata->getCacheTags());
211211
// $this->assertContains('4xx-response', $metadata->getCacheTags());
212212
}

0 commit comments

Comments
 (0)