* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace EasyWeChat\Tests\OpenPlatform; use EasyWeChat\OpenPlatform\Application; use EasyWeChat\OpenPlatform\Auth\VerifyTicket; use EasyWeChat\OpenPlatform\Server\Handlers\VerifyTicketRefreshed; use EasyWeChat\Tests\TestCase; class VerifyTicketRefreshedTest extends TestCase { public function testHandle() { $app = new Application(); $app['verify_ticket'] = \Mockery::mock(VerifyTicket::class, function ($mock) { $mock->expects()->setTicket('ticket'); }); $handler = new VerifyTicketRefreshed($app); $this->assertNull($handler->handle([ 'ComponentVerifyTicket' => 'ticket', ])); } }