File tree Expand file tree Collapse file tree 3 files changed +23
-10
lines changed
tests/functional/Generator Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1919 <exclude name =" Drupal.Commenting.DocComment.MissingShort" />
2020 <exclude name =" Drupal.Commenting.VariableComment.Missing" />
2121 <exclude name =" Drupal.Arrays.Array.LongLineDeclaration" />
22+ <!-- Conflicts with {@selfdoc} -->
23+ <exclude name =" Drupal.Commenting.DocComment.ShortNotCapital" />
24+ <exclude name =" Drupal.Commenting.DocComment.ShortFullStop" />
2225
2326 <exclude name =" SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator.TrailingMultiLineTernaryOperatorUsed" />
2427 </rule >
Original file line number Diff line number Diff line change 33namespace PHPSTORM_META {
44
55 // Entity types.
6- expectedReturnValues(
7- \Drupal\Core\Entity\ EntityInterface :: getEntityTypeId(),
6+ registerArgumentsSet(' entity_type_ids' ,
87{% for type , definition in definitions % }
98 ' {{ type }}' ,
109{% endfor % }
1110 );
1211
12+ expectedArguments(\Drupal\KernelTests\ KernelTestBase :: installEntitySchema(), 0 , argumentsSet(' entity_type_ids' ));
13+ expectedReturnValues(\Drupal\Core\Entity\ EntityInterface :: getEntityTypeId(), argumentsSet(' entity_type_ids' ));
14+
1315 // Storages.
1416 override(
1517 \Drupal\Core\Entity\ EntityTypeManagerInterface :: getStorage(0 ),
Original file line number Diff line number Diff line change @@ -198,18 +198,26 @@ private function assertPlugins(): void {
198198 self ::assertSame (48 , \substr_count ($ generated_content , 'registerArgumentsSet ' ));
199199 }
200200
201+ /**
202+ * {@selfdoc}
203+ */
201204 private function assertEntityTypes (): void {
202205 $ generated_content = $ this ->getGeneratedContent ('.phpstorm.meta.php/entity_types.php ' );
203206
204207 $ entity_types = <<< 'PHP'
205- expectedReturnValues(
206- \Drupal\Core\Entity\EntityInterface::getEntityTypeId(),
207- 'action',
208- 'base_field_override',
209- 'block',
210- 'block_content',
211- 'block_content_type',
212- PHP;
208+ <?php declare(strict_types = 1);
209+
210+ namespace PHPSTORM_META {
211+
212+ // Entity types.
213+ registerArgumentsSet('entity_type_ids',
214+ 'action',
215+ 'base_field_override',
216+ 'block',
217+ 'block_content',
218+ 'block_content_type',
219+ 'comment',
220+ PHP;
213221 self ::assertStringContainsString ($ entity_types , $ generated_content );
214222 }
215223
You can’t perform that action at this time.
0 commit comments