Rename verificationHandler->validationHandler
This commit is contained in:
parent
13287c7f10
commit
286453f43b
@ -6,7 +6,7 @@ use ActivityPub\Activities\OutboxActivityEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
|
||||
class VerificationHandler implements EventSubscriberInterface
|
||||
class ValidationHandler implements EventSubscriberInterface
|
||||
{
|
||||
public static function getSubscribedEvents()
|
||||
{
|
@ -3,14 +3,14 @@ namespace ActivityPub\Test\Activities;
|
||||
|
||||
use ActivityPub\Activities\InboxActivityEvent;
|
||||
use ActivityPub\Activities\OutboxActivityEvent;
|
||||
use ActivityPub\Activities\VerificationHandler;
|
||||
use ActivityPub\Activities\ValidationHandler;
|
||||
use ActivityPub\Test\TestUtils\TestActivityPubObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
|
||||
class VerificationHandlerTest extends TestCase
|
||||
class ValidationHandlerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var EventDispatcher
|
||||
@ -20,10 +20,10 @@ class VerificationHandlerTest extends TestCase
|
||||
public function setUp()
|
||||
{
|
||||
$this->eventDispatcher = new EventDispatcher();
|
||||
$verificationHandler = new VerificationHandler();
|
||||
$this->eventDispatcher->addSubscriber( $verificationHandler );
|
||||
$validationHandler = new ValidationHandler();
|
||||
$this->eventDispatcher->addSubscriber( $validationHandler );
|
||||
}
|
||||
public function testVerificationHandler()
|
||||
public function testValidationHandler()
|
||||
{
|
||||
$testCases = array(
|
||||
array(
|
Loading…
Reference in New Issue
Block a user