function DrupalComponentTest::providerAssertNoCoreUseage
Data provider for testAssertNoCoreUseage().
Return value
array Data for testAssertNoCoreUseage() in the form:
- TRUE if the test passes, FALSE otherwise.
- File data as a string. This will be used as a virtual file.
File
-
core/
tests/ Drupal/ Tests/ Component/ DrupalComponentTest.php, line 111
Class
- DrupalComponentTest
- General tests for \Drupal\Component that can't go anywhere else.
Namespace
Drupal\Tests\ComponentCode
public function providerAssertNoCoreUseage() {
return [
[
TRUE,
'@see \\Drupal\\Core\\Something',
],
[
FALSE,
'\\Drupal\\Core\\Something',
],
[
FALSE,
"@see \\Drupal\\Core\\Something\n" . '\\Drupal\\Core\\Something',
],
[
FALSE,
"\\Drupal\\Core\\Something\n" . '@see \\Drupal\\Core\\Something',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.