You are here

protected function MatcherTest::setUp in CRM Core 8.2

Overrides UnitTestCase::setUp

File

modules/crm_core_match/tests/src/Unit/MatcherTest.php, line 71
Contains \Drupal\Tests\crm_core_match\Unit\MatcherTest.

Class

MatcherTest
Tests the matcher service.

Namespace

Drupal\Tests\crm_core_match\Unit

Code

protected function setUp() {
  $this->engine['a'] = $this
    ->getMock('Drupal\\crm_core_match\\Plugin\\crm_core_match\\engine\\MatchEngineInterface');
  $this->engine['b'] = $this
    ->getMock('Drupal\\crm_core_match\\Plugin\\crm_core_match\\engine\\MatchEngineInterface');
  $this->engine['c'] = $this
    ->getMock('Drupal\\crm_core_match\\Plugin\\crm_core_match\\engine\\MatchEngineInterface');
  $this->pluginManager = $this
    ->getMock('Drupal\\Component\\Plugin\\PluginManagerInterface');

  //    $this->config = $this->getMockBuilder('\Drupal\Core\Config\Config')
  //      ->disableOriginalConstructor()
  //      ->getMock();
  //    $this->matcher = $this->getMock('Drupal\crm_core_match\Matcher');
  $this->individual = $this
    ->getMockBuilder('Drupal\\crm_core_contact\\Entity\\Individual')
    ->disableOriginalConstructor()
    ->getMock();
}