Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Spelling fixes #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Bot/BotInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
interface BotInterface {

/**
* Process incomming data.
* Process incoming data.
*
* @param string $data
* Json encoded data delivered by the Facebook API.
Expand Down
2 changes: 1 addition & 1 deletion src/FacebookService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FBMessengerBotWorkflowKernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FacebookServiceTranslateRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Step/BotWorkflowStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
6 changes: 3 additions & 3 deletions tests/src/Unit/Workflow/BotWorkflowTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()),
);

}
Expand Down Expand Up @@ -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);
}
Expand Down