Added new Beacon handling code

This commit is contained in:
James Brooks
2016-08-03 17:44:21 +01:00
parent dd2e77d479
commit 778664b20a
14 changed files with 446 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Tests\Cachet\Bus\Jobs\System;
use AltThree\TestBench\JobTrait;
use CachetHQ\Cachet\Bus\Jobs\System\SendBeaconJob;
use CachetHQ\Cachet\Bus\Handlers\Jobs\System\SendBeaconJobHandler;
use CachetHQ\Tests\Cachet\AbstractTestCase;
/**
* This is the send beacon job test class.
*
* @author James Brooks <james@alt-three.com>
*/
class SendBeaconJobTest extends AbstractTestCase
{
use JobTrait;
/**
* @before
*/
public function setEventExpectations()
{
$this->onlyExpectsEvents([]);
}
protected function getObjectAndParams()
{
$params = [];
$object = new SendBeaconJob();
return compact('params', 'object');
}
protected function getHandlerClass()
{
return SendBeaconJobHandler::class;
}
}