diff --git a/src/Bot/BotInterface.php b/src/Bot/BotInterface.php index 0655688..06c206f 100755 --- a/src/Bot/BotInterface.php +++ b/src/Bot/BotInterface.php @@ -10,7 +10,7 @@ interface BotInterface { /** - * Process incomming data. + * Process incoming data. * * @param string $data * Json encoded data delivered by the Facebook API. diff --git a/src/FacebookService.php b/src/FacebookService.php index 67b715e..f4c5f4b 100755 --- a/src/FacebookService.php +++ b/src/FacebookService.php @@ -102,7 +102,7 @@ public function challenge() { } /** - * 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. diff --git a/tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php b/tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php index 390b28b..1e5cf10 100755 --- a/tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php +++ b/tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php @@ -23,7 +23,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 */ diff --git a/tests/src/Kernel/FacebookServiceTranslateRequestTest.php b/tests/src/Kernel/FacebookServiceTranslateRequestTest.php index 742e07c..cd71e31 100755 --- a/tests/src/Kernel/FacebookServiceTranslateRequestTest.php +++ b/tests/src/Kernel/FacebookServiceTranslateRequestTest.php @@ -108,7 +108,7 @@ public function testServiceShouldAssignPostbackMessageType($json) { * * @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); diff --git a/tests/src/Unit/Step/BotWorkflowStepTest.php b/tests/src/Unit/Step/BotWorkflowStepTest.php index cf41e6b..9819645 100755 --- a/tests/src/Unit/Step/BotWorkflowStepTest.php +++ b/tests/src/Unit/Step/BotWorkflowStepTest.php @@ -204,7 +204,7 @@ public function testProcessMessageMethod($incomingMessage, $expectedValid, $expe $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']); diff --git a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php index 78792b5..6702dd8 100755 --- a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php +++ b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php @@ -42,7 +42,7 @@ public function setUp() { ], ]); - // Instantiate mock immuatableConfig for configFactory stub's get() method. + // Instantiate mock immutableConfig for configFactory stub's get() method. // @see Drupal\fb_messenger_bot\Workflow\FBMessengerBotWorkflow::buildSteps(). $immutableConfig = $this->getMockBuilder('\Drupal\Core\Config\ImmutableConfig') ->disableOriginalConstructor() @@ -131,7 +131,7 @@ public function badDataProvider() { return array( 'string' => array('This is a string'), 'array of unexpected contents' => array(array(1, 2, 3)), - 'non-iterateable object' => array(new \stdClass()), + 'non-iterable object' => array(new \stdClass()), ); } @@ -255,7 +255,7 @@ public function testGetTrollingMessageReturnValue() { // Make sure we have at least one trolling message. $this->assertTrue(count($trollingMessages) >= 1); - // Make sure all contents of the array are actually MessagInterfaces. + // Make sure all contents of the array are actually MessageInterfaces. foreach ($trollingMessages as $message) { $this->assertInstanceOf('\Drupal\fb_messenger_bot\Message\MessageInterface', $message); }