Added test existence tests
This commit is contained in:
30
tests/Bus/Commands/CommandExistenceTest.php
Normal file
30
tests/Bus/Commands/CommandExistenceTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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\Commands;
|
||||
|
||||
use AltThree\TestBench\ExistenceTrait;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* This is the command existence test class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
*/
|
||||
class CommandExistenceTest extends TestCase
|
||||
{
|
||||
use ExistenceTrait;
|
||||
|
||||
protected function getSourcePath()
|
||||
{
|
||||
return realpath(__DIR__.'/../../../app/Bus/Commands');
|
||||
}
|
||||
}
|
||||
30
tests/Bus/Events/EventExistenceTest.php
Normal file
30
tests/Bus/Events/EventExistenceTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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\Events;
|
||||
|
||||
use AltThree\TestBench\ExistenceTrait;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* This is the event existence test class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
*/
|
||||
class EventExistenceTest extends TestCase
|
||||
{
|
||||
use ExistenceTrait;
|
||||
|
||||
protected function getSourcePath()
|
||||
{
|
||||
return realpath(__DIR__.'/../../../app/Bus/Events');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user