public function testRegisterLimitationType()
{
$fieldTypeIdentifier = 'field_type_identifier';
$serviceId = 'service_id';
$def = new Definition();
$def->addTag('ezpublish.limitationType', array('alias' => $fieldTypeIdentifier));
$this->setDefinition($serviceId, $def);
$this->compile();
$this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.api.repository.factory', 'registerLimitationType', array($fieldTypeIdentifier, new Reference($serviceId)));
}