eZ\Publish\Core\REST\Common\Tests\FieldTypeProcessorRegistryTest::testRegisterMultipleProcessors PHP Method

testRegisterMultipleProcessors() public method

    public function testRegisterMultipleProcessors()
    {
        $registry = new FieldTypeProcessorRegistry();
        $processorA = $this->getAProcessorMock();
        $processorB = $this->getAProcessorMock();
        $registry->registerProcessor('my-type', $processorA);
        $registry->registerProcessor('your-type', $processorB);
        $this->assertTrue($registry->hasProcessor('my-type'));
        $this->assertTrue($registry->hasProcessor('your-type'));
    }