From 33c711fb18cf3011d46c399abfb67b9e3d130a61 Mon Sep 17 00:00:00 2001 From: Aaron Bauman <aaron@messageagency.com> Date: Fri, 16 Aug 2019 16:01:48 -0400 Subject: [PATCH] Fix comments --- .../tests/src/Functional/PushParamsTest.php | 6 +++--- .../tests/src/Functional/PushQueueTest.php | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/salesforce_mapping/tests/src/Functional/PushParamsTest.php b/modules/salesforce_mapping/tests/src/Functional/PushParamsTest.php index 3379658c..ba2500cc 100644 --- a/modules/salesforce_mapping/tests/src/Functional/PushParamsTest.php +++ b/modules/salesforce_mapping/tests/src/Functional/PushParamsTest.php @@ -10,7 +10,7 @@ use Drupal\salesforce_mapping\PushParams; use Drupal\Tests\BrowserTestBase; /** - * Test description. + * Test that PushParams correctly creates data structures for Salesforce. * * @group salesforce_mapping */ @@ -19,9 +19,9 @@ class PushParamsTest extends BrowserTestBase { public static $modules = ['typed_data', 'dynamic_entity_reference', 'salesforce_mapping', 'salesforce_mapping_test']; /** - * Tests something. + * Test PushParams instantiation, where all the work gets done. */ - public function testSomething() { + public function testPushParams() { $mapping = SalesforceMapping::load('test_mapping'); $date = date(DateTimeItemInterface::DATETIME_STORAGE_FORMAT, \Drupal::time()->getRequestTime()); diff --git a/modules/salesforce_push/tests/src/Functional/PushQueueTest.php b/modules/salesforce_push/tests/src/Functional/PushQueueTest.php index 2ce09744..f7af23c7 100644 --- a/modules/salesforce_push/tests/src/Functional/PushQueueTest.php +++ b/modules/salesforce_push/tests/src/Functional/PushQueueTest.php @@ -3,10 +3,18 @@ use Drupal\node\Entity\Node; use Drupal\Tests\BrowserTestBase; +/** + * Test PushQueue. + * + * @group salesforce_push + */ class PushQueueTest extends BrowserTestBase { public static $modules = ['typed_data', 'dynamic_entity_reference', 'salesforce_mapping', 'salesforce_mapping_test', 'salesforce_push']; + /** + * Test that saving mapped nodes enqueues them for push to Salesforce. + */ public function testEnqueue() { /** @var \Drupal\salesforce_push\PushQueue $queue */ $queue = \Drupal::service('queue.salesforce_push'); -- GitLab