You are here

public function DrupalComponentTest::providerAssertNoCoreUseage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/DrupalComponentTest.php \Drupal\Tests\Component\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 87
Contains \Drupal\Tests\Component\DrupalComponentTest.

Class

DrupalComponentTest
General tests for \Drupal\Component that can't go anywhere else.

Namespace

Drupal\Tests\Component

Code

public function providerAssertNoCoreUseage() {
  return array(
    array(
      TRUE,
      '@see \\Drupal\\Core\\Something',
    ),
    array(
      FALSE,
      '\\Drupal\\Core\\Something',
    ),
    array(
      FALSE,
      "@see \\Drupal\\Core\\Something\n" . '\\Drupal\\Core\\Something',
    ),
    array(
      FALSE,
      "\\Drupal\\Core\\Something\n" . '@see \\Drupal\\Core\\Something',
    ),
  );
}