@@ -151,7 +151,7 @@ |
||
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * @param bool $expectedSubmit |
| 154 | - * @param mixed $expectedException |
|
| 154 | + * @param string|null $expectedException |
|
| 155 | 155 | */ |
| 156 | 156 | private function initializeMocks($expectedSubmit, $expectedException) |
| 157 | 157 | { |
@@ -5,9 +5,7 @@ |
||
| 5 | 5 | use Symfony\Component\Form\FormError; |
| 6 | 6 | use Symfony\Component\Form\FormFactoryInterface; |
| 7 | 7 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 8 | - |
|
| 9 | 8 | use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration; |
| 10 | - |
|
| 11 | 9 | use OroCRM\Bundle\ChannelBundle\Form\DataTransformer\DatasourceDataTransformer; |
| 12 | 10 | |
| 13 | 11 | class DatasourceDataTransformerTest extends \PHPUnit_Framework_TestCase |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\Form\EventListener; |
| 4 | 4 | |
| 5 | 5 | use Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\Form\FormEvent; |
| 8 | 7 | use Symfony\Component\Form\FormEvents; |
| 9 | 8 | use Symfony\Component\Form\PreloadedExtension; |
| 10 | 9 | use Symfony\Component\Form\Test\FormIntegrationTestCase; |
| 11 | - |
|
| 12 | 10 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelEntityType; |
| 13 | 11 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelType; |
| 14 | 12 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
@@ -3,13 +3,11 @@ |
||
| 3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\Form\Handler; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\Form\FormInterface; |
| 8 | 7 | use Symfony\Component\Form\FormView; |
| 9 | 8 | use Symfony\Component\HttpFoundation\Request; |
| 10 | 9 | use Symfony\Bridge\Doctrine\RegistryInterface; |
| 11 | 10 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 12 | - |
|
| 13 | 11 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
| 14 | 12 | use OroCRM\Bundle\ChannelBundle\Event\ChannelSaveEvent; |
| 15 | 13 | use OroCRM\Bundle\ChannelBundle\Form\Handler\ChannelHandler; |
@@ -6,10 +6,8 @@ |
||
| 6 | 6 | use Symfony\Component\Form\FormView; |
| 7 | 7 | use Symfony\Component\Form\FormInterface; |
| 8 | 8 | use Symfony\Component\HttpFoundation\Request; |
| 9 | - |
|
| 10 | 9 | use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration; |
| 11 | 10 | use Oro\Bundle\IntegrationBundle\Form\Handler\ChannelHandler as IntegrationChannelHandler; |
| 12 | - |
|
| 13 | 11 | use OroCRM\Bundle\ChannelBundle\Form\Handler\ChannelIntegrationHandler; |
| 14 | 12 | |
| 15 | 13 | class ChannelIntegrationHandlerTest extends \PHPUnit_Framework_TestCase |
@@ -3,7 +3,6 @@ discard block |
||
| 3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\Form\Type; |
| 4 | 4 | |
| 5 | 5 | use Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\Validator\Validator; |
| 8 | 7 | use Symfony\Bridge\Doctrine\ManagerRegistry; |
| 9 | 8 | use Symfony\Component\Form\PreloadedExtension; |
@@ -14,7 +13,6 @@ discard block |
||
| 14 | 13 | use Symfony\Component\Validator\Mapping\ClassMetadataFactory; |
| 15 | 14 | use Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension; |
| 16 | 15 | use Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension; |
| 17 | - |
|
| 18 | 16 | use Oro\Bundle\UserBundle\Form\Type\UserAclSelectType; |
| 19 | 17 | use Oro\Bundle\UserBundle\Form\Type\OrganizationUserAclSelectType; |
| 20 | 18 | use Oro\Bundle\FormBundle\Autocomplete\SearchRegistry; |
@@ -26,7 +24,6 @@ discard block |
||
| 26 | 24 | use Oro\Bundle\IntegrationBundle\Form\Type\IntegrationTypeSelectType; |
| 27 | 25 | use Oro\Bundle\FormBundle\Form\Type\OroEntitySelectOrCreateInlineType; |
| 28 | 26 | use Oro\Bundle\IntegrationBundle\Form\EventListener\ChannelFormSubscriber; |
| 29 | - |
|
| 30 | 27 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelDatasourceType; |
| 31 | 28 | use OroCRM\Bundle\ChannelBundle\Form\Extension\IntegrationTypeExtension; |
| 32 | 29 | |
@@ -4,16 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Annotations\AnnotationReader; |
| 6 | 6 | use Doctrine\ORM\Mapping\Driver\AnnotationDriver; |
| 7 | - |
|
| 8 | 7 | use Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type; |
| 9 | - |
|
| 10 | 8 | use Symfony\Component\Form\Forms; |
| 11 | 9 | use Symfony\Component\Form\FormFactory; |
| 12 | 10 | use Symfony\Bridge\Doctrine\Form\Type\EntityType; |
| 13 | 11 | use Symfony\Component\Form\PreloadedExtension; |
| 14 | - |
|
| 15 | 12 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelSelectType; |
| 16 | - |
|
| 17 | 13 | use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase; |
| 18 | 14 | |
| 19 | 15 | class ChannelSelectTypeTest extends OrmTestCase |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Form\FormView; |
| 6 | 6 | use Symfony\Component\Form\FormBuilder; |
| 7 | - |
|
| 8 | 7 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelType; |
| 9 | 8 | use OroCRM\Bundle\ChannelBundle\Provider\SettingsProvider; |
| 10 | 9 | use OroCRM\Bundle\ChannelBundle\Form\EventListener\ChannelTypeSubscriber; |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\Provider\Lifetime; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 6 | - |
|
| 7 | 6 | use Oro\Bundle\LocaleBundle\Model\LocaleSettings; |
| 8 | 7 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
| 9 | - |
|
| 10 | 8 | use OroCRM\Bundle\ChannelBundle\Provider\Lifetime\AverageLifetimeWidgetProvider; |
| 11 | 9 | |
| 12 | 10 | class AverageLifetimeWidgetProviderTest extends \PHPUnit_Framework_TestCase |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | - * @param $index |
|
| 167 | + * @param integer $index |
|
| 168 | 168 | * |
| 169 | 169 | * @return array |
| 170 | 170 | */ |
@@ -3,11 +3,9 @@ |
||
| 3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\Provider; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Routing\RouterInterface; |
| 6 | - |
|
| 7 | 6 | use Oro\Bundle\EntityBundle\Provider\EntityProvider; |
| 8 | 7 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
| 9 | 8 | use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel; |
| 10 | - |
|
| 11 | 9 | use OroCRM\Bundle\ChannelBundle\Provider\MetadataProvider; |
| 12 | 10 | use OroCRM\Bundle\ChannelBundle\Provider\SettingsProvider; |
| 13 | 11 | |