diff --git a/composer.json b/composer.json index 4e399ab..bfc7a95 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ ], "require": { "php": ">=7.0", - "mpociot/botman": "~2.0" + "botman/botman": "~2.0" }, "require-dev": { "phpunit/phpunit": "~5.0", @@ -38,7 +38,5 @@ "scripts": { "test": "vendor/bin/phpunit", "cs": "php-cs-fixer fix" - }, - "minimum-stability": "dev", - "prefer-stable": true + } } diff --git a/tests/FacebookDriverTest.php b/tests/FacebookDriverTest.php index 9cf8e8a..75c0c12 100644 --- a/tests/FacebookDriverTest.php +++ b/tests/FacebookDriverTest.php @@ -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() {