You are here

function test in Coder 8.3

Same name in this branch
  1. 8.3 tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
  2. 8.3 tests/Drupal/Classes/UseLeadingBackslashUnitTest.inc \test()
  3. 8.3 tests/DrupalPractice/Objects/drupal8/example.module \test()
  4. 8.3 tests/Drupal/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
  5. 8.3 tests/Drupal/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()
Same name and namespace in other branches
  1. 8.2 coder_sniffer/DrupalPractice/Test/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
  2. 8.2 coder_sniffer/Drupal/Test/Classes/UseLeadingBackslashUnitTest.inc \test()
  3. 8.2 coder_sniffer/Drupal/Test/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
  4. 8.2 coder_sniffer/Drupal/Test/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()
  5. 8.3.x tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
  6. 8.3.x tests/Drupal/Classes/UseLeadingBackslashUnitTest.inc \test()
  7. 8.3.x tests/DrupalPractice/Objects/drupal8/example.module \test()
  8. 8.3.x tests/Drupal/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
  9. 8.3.x tests/Drupal/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()

Using \Drupal here is allowed since this code runs in the global namespace.

2 calls to test()
example_custom_block_view in tests/Drupal/Commenting/InlineCommentUnitTest.inc
Test function.
PostStatementCommentUnitTest.1.inc in tests/Drupal/Commenting/PostStatementCommentUnitTest.1.inc
10 string references to 'test'
bad.php in tests/Drupal/bad/bad.php
constant_test.install in tests/Drupal/Semantics/constant_test.install
constant_test.module in tests/Drupal/Semantics/constant_test.module
DefaultValueSanitizeUnitTest.inc in tests/DrupalPractice/FunctionCalls/DefaultValueSanitizeUnitTest.inc
Example::test4 in tests/Drupal/Classes/UseGlobalClassUnitTest.inc
Description.

... See full list

File

tests/DrupalPractice/Objects/drupal8/example.module, line 6

Code

function test() {
  return \Drupal::configFactory();
}