From 288d643776b2d0029e3e6fa4fad4f61501dd4b37 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:48:59 +0000 Subject: [PATCH 1/8] spelling: attachment --- tests/src/Kernel/FacebookServiceTranslateRequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 62503fb1693a1eadd9e6adf08f290df130f28ade Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:49:11 +0000 Subject: [PATCH 2/8] spelling: conversation --- tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ From 08ebd912e6ecb22c091df42aad19a5b44e5a648f Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:49:23 +0000 Subject: [PATCH 3/8] spelling: immutable --- tests/src/Unit/Workflow/BotWorkflowTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php index 78792b5..9488b3b 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() From c492a720bda8642de341553cc6a245109f73824f Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:49:37 +0000 Subject: [PATCH 4/8] spelling: incoming --- src/Bot/BotInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 35f8366646281232b98fa549456f07f251449191 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:49:44 +0000 Subject: [PATCH 5/8] spelling: independent --- src/FacebookService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 2c2270ac7b390bd12701144b560d9e8bcc13163c Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:50:03 +0000 Subject: [PATCH 6/8] spelling: iterable --- tests/src/Unit/Workflow/BotWorkflowTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php index 9488b3b..ceccec3 100755 --- a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php +++ b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php @@ -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()), ); } From 74258bb16c6ac170babf89873ec378c647d404d8 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:50:32 +0000 Subject: [PATCH 7/8] spelling: message --- tests/src/Unit/Workflow/BotWorkflowTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php index ceccec3..6702dd8 100755 --- a/tests/src/Unit/Workflow/BotWorkflowTraitTest.php +++ b/tests/src/Unit/Workflow/BotWorkflowTraitTest.php @@ -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); } From a1c56f883a21ef1a340b66bc2d89c14bcd10971b Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 16 Oct 2016 06:51:02 +0000 Subject: [PATCH 8/8] spelling: process --- tests/src/Unit/Step/BotWorkflowStepTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);