Commit 4a740f11 authored by Mitchell Shelton's avatar Mitchell Shelton Committed by Sándor Juhász
Browse files

Issue #2875077 by mitchellshelton: Spelling

parent 2cc639e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ namespace Drupal\fb_messenger_bot\Bot;
interface BotInterface {

  /**
   * Process incomming data.
   * Process incoming data.
   *
   * @param string $data
   *   Json encoded data delivered by the Facebook API.
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ class FacebookService {
  }

  /**
   * Helper function to unpack an array of Messages into independant items.
   * Helper function to unpack an array of Messages into independent items.
   *
   * @param array $messages
   *   An array of 1+ MessageInterface objects to send to the user.
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ class FBMessengerBotWorkflowKernelTest extends KernelTestBase {
  public static $modules = array('fb_messenger_bot');

  /**
   * A converstaion factory.
   * A conversation factory.
   *
   * @var \Drupal\fb_messenger_bot\Conversation\ConversationFactory
   */
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ class FacebookServiceTranslateRequestTest extends KernelTestBase {
   *
   * @dataProvider attachmentMessageDataProvider
   */
  public function testServiceShouldAssignAttachentMessageType($json) {
  public function testServiceShouldAssignAttachmentMessageType($json) {
    $original = $this->getTestTextMessage();
    $uid = $original['entry'][0]['messaging'][0]['sender']['id'];
    $translated = $this->service->translateRequest($json);
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ class BotWorkflowStepTest extends UnitTestCase {

    $outcome = $this->questionMessageStep->processResponse($incomingMessage);

    $this->assertInstanceOf('\Drupal\fb_messenger_bot\Step\StepInvocationOutcome', $outcome, 'BotWorkflowStep::procesMessage() did not return a StepInvocationOutcomes.');
    $this->assertInstanceOf('\Drupal\fb_messenger_bot\Step\StepInvocationOutcome', $outcome, 'BotWorkflowStep::processMessage() did not return a StepInvocationOutcomes.');

    $this->assertEquals($expectedValid, $outcome->incomingResponseIsValid());
    $this->assertEquals($expectedMessage, $outcome->getOutboundMessage()[0]->getFormattedMessage()['text']);
Loading