You are here

public function SalesforceMappingTest::testCheckTriggers in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php \Drupal\Tests\salesforce_mapping\Unit\SalesforceMappingTest::testCheckTriggers()
  2. 5.0.x modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php \Drupal\Tests\salesforce_mapping\Unit\SalesforceMappingTest::testCheckTriggers()

Test checkTriggers()

File

modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php, line 144

Class

SalesforceMappingTest
Test Object instantitation.

Namespace

Drupal\Tests\salesforce_mapping\Unit

Code

public function testCheckTriggers() {
  $triggers = $this->mapping
    ->checkTriggers([
    MappingConstants::SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE,
    MappingConstants::SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE,
  ]);
  $this
    ->assertTrue($triggers);
}