You are here

protected function YamlDiscoveryTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDiscoveryTest.php \Drupal\Tests\Core\Plugin\Discovery\YamlDiscoveryTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDiscoveryTest.php, line 40
Contains \Drupal\Tests\Core\Plugin\Discovery\YamlDiscoveryTest.

Class

YamlDiscoveryTest
@coversDefaultClass \Drupal\Core\Plugin\Discovery\YamlDiscovery @group Plugin

Namespace

Drupal\Tests\Core\Plugin\Discovery

Code

protected function setUp() {
  parent::setUp();
  $base_path = __DIR__ . '/Fixtures';

  // Set up the directories to search.
  $directories = array(
    'test_1' => $base_path . '/test_1',
    'test_2' => $base_path . '/test_2',
  );
  $this->discovery = new YamlDiscovery('test', $directories);
}