@@ -5,11 +5,8 @@ |
||
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\EntityRepository; |
7 | 7 | use Doctrine\Common\Persistence\ManagerRegistry; |
8 | - |
|
9 | 8 | use JMS\JobQueueBundle\Entity\Job; |
10 | - |
|
11 | 9 | use Oro\Bundle\ConfigBundle\Event\ConfigUpdateEvent; |
12 | - |
|
13 | 10 | use OroCRM\Bundle\ChannelBundle\Command\LifetimeAverageAggregateCommand; |
14 | 11 | use OroCRM\Bundle\ChannelBundle\EventListener\TimezoneChangeListener; |
15 | 12 |
@@ -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,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; |
@@ -5,9 +5,7 @@ |
||
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\Mapping\Driver\AnnotationDriver; |
7 | 7 | use Doctrine\Common\Annotations\AnnotationReader; |
8 | - |
|
9 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase; |
10 | - |
|
11 | 9 | use OroCRM\Bundle\ChannelBundle\ImportExport\Helper\ChannelHelper; |
12 | 10 | |
13 | 11 | class ChannelHelperTest extends OrmTestCase |
@@ -4,11 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\Common\Annotations\AnnotationReader; |
7 | - |
|
8 | 7 | use Doctrine\ORM\Mapping\Driver\AnnotationDriver; |
9 | - |
|
10 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase; |
11 | - |
|
12 | 9 | use OroCRM\Bundle\ChannelBundle\Provider\Lifetime\AmountProvider; |
13 | 10 | |
14 | 11 | class AmountProviderTest extends OrmTestCase |