Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Aug 28, 2017
1 parent 60604b1 commit 2a64ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"require": {
"php": ">=7.0",
"mpociot/botman": "~2.0"
"botman/botman": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
Expand All @@ -38,7 +38,5 @@
"scripts": {
"test": "vendor/bin/phpunit",
"cs": "php-cs-fixer fix"
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
33 changes: 0 additions & 33 deletions tests/FacebookDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,39 +149,6 @@ public function it_shows_that_postback_is_no_event_anymore()
$this->assertFalse($event);
}

/** @test */
public function it_can_originate_messages()
{
$botman = BotManFactory::create([], new ArrayCache());

$htmlInterface = m::mock(Curl::class);
$htmlInterface->shouldReceive('post')->once()->with('https://graph.facebook.com/v2.6/me/messages', [], [
'recipient' => [
'id' => '1234567890',
],
'message' => [
'text' => 'Test',
],
'access_token' => 'Foo',
])->andReturn(new Response());

$request = m::mock(\Symfony\Component\HttpFoundation\Request::class.'[getContent]');
$request->shouldReceive('getContent')->andReturn('');

$config = [
'facebook' => [
'token' => 'Foo',
],
];

$driver = new FacebookDriver($request, $config, $htmlInterface);

$user_id = '1234567890';
$botman->say('Test', $user_id, $driver);

$this->assertInstanceOf(FacebookDriver::class, $botman->getDriver());
}

/** @test */
public function it_returns_the_message()
{
Expand Down

0 comments on commit 2a64ba7

Please sign in to comment.