@@ -5,9 +5,7 @@ |
||
5 | 5 | use Symfony\Component\DomCrawler\Form; |
6 | 6 | use Symfony\Component\DomCrawler\Field\ChoiceFormField; |
7 | 7 | use Symfony\Component\DomCrawler\Field\InputFormField; |
8 | - |
|
9 | 8 | use Oro\Bundle\DataGridBundle\Tests\Functional\AbstractDatagridTestCase; |
10 | - |
|
11 | 9 | use OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures; |
12 | 10 | |
13 | 11 | /** |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\SalesBundle\Entity\B2bCustomer; |
9 | 8 | |
10 | 9 | class LoadB2bCustomerEntitiesData extends AbstractFixture |
@@ -3,12 +3,10 @@ |
||
3 | 3 | |
4 | 4 | use Doctrine\Common\DataFixtures\AbstractFixture; |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | - |
|
7 | 6 | use Oro\Bundle\DashboardBundle\Entity\Dashboard; |
8 | 7 | use Oro\Bundle\DashboardBundle\Entity\Widget; |
9 | 8 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
10 | 9 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\CampaignBundle\Entity\Campaign; |
13 | 11 | use OroCRM\Bundle\SalesBundle\Entity\Lead; |
14 | 12 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
@@ -34,6 +34,10 @@ |
||
34 | 34 | $this->createLead($createdAt, ++$i); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param \DateTime $createdAt |
|
39 | + * @param integer $id |
|
40 | + */ |
|
37 | 41 | public function createLead($createdAt, $id) |
38 | 42 | { |
39 | 43 | $lead = new Lead(); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | 7 | use Oro\Bundle\DashboardBundle\Entity\Dashboard; |
9 | 8 | use Oro\Bundle\DashboardBundle\Entity\Widget; |
10 | 9 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
@@ -36,8 +36,8 @@ |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * @param $createdAt |
|
40 | - * @param $id |
|
39 | + * @param \DateTime $createdAt |
|
40 | + * @param integer $id |
|
41 | 41 | */ |
42 | 42 | protected function createOpportunity($createdAt, $id) |
43 | 43 | { |
@@ -5,15 +5,12 @@ |
||
5 | 5 | use Doctrine\ORM\EntityRepository; |
6 | 6 | use Doctrine\ORM\Query; |
7 | 7 | use Doctrine\ORM\QueryBuilder; |
8 | - |
|
9 | 8 | use Symfony\Bridge\Doctrine\RegistryInterface; |
10 | - |
|
11 | 9 | use Oro\Bundle\DashboardBundle\Filter\DateFilterProcessor; |
12 | 10 | use Oro\Bundle\DashboardBundle\Model\WidgetOptionBag; |
13 | 11 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
14 | 12 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
15 | 13 | use Oro\Bundle\UserBundle\Dashboard\OwnerHelper; |
16 | - |
|
17 | 14 | use OroCRM\Bundle\SalesBundle\Dashboard\Provider\OpportunityByStatusProvider; |
18 | 15 | |
19 | 16 | class OpportunityByStatusProviderTest extends \PHPUnit_Framework_TestCase |
@@ -3,13 +3,10 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Tests\Unit\Provider; |
4 | 4 | |
5 | 5 | use Doctrine\Bundle\DoctrineBundle\Registry; |
6 | - |
|
7 | 6 | use Symfony\Component\Translation\TranslatorInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\DashboardBundle\Filter\DateFilterProcessor; |
10 | 8 | use Oro\Bundle\EntityExtendBundle\Twig\EnumExtension; |
11 | 9 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
12 | - |
|
13 | 10 | use OroCRM\Bundle\SalesBundle\Dashboard\Provider\WidgetOpportunityByLeadSourceProvider; |
14 | 11 | use OroCRM\Bundle\SalesBundle\Entity\Repository\OpportunityRepository; |
15 | 12 |
@@ -5,7 +5,6 @@ discard block |
||
5 | 5 | use Symfony\Component\Form\FormBuilder; |
6 | 6 | use Symfony\Component\Form\FormEvent; |
7 | 7 | use Symfony\Component\Form\FormView; |
8 | - |
|
9 | 8 | use Oro\Bundle\ConfigBundle\Config\ConfigManager; |
10 | 9 | use Oro\Bundle\EntityBundle\ORM\DoctrineHelper; |
11 | 10 | use Oro\Bundle\EntityExtendBundle\Entity\AbstractEnumValue; |
@@ -13,7 +12,6 @@ discard block |
||
13 | 12 | use Oro\Bundle\EntityExtendBundle\Form\Util\EnumTypeHelper; |
14 | 13 | use Oro\Bundle\EntityExtendBundle\Provider\EnumValueProvider; |
15 | 14 | use Oro\Bundle\EntityExtendBundle\Tests\Unit\Fixtures\TestEnumValue; |
16 | - |
|
17 | 15 | use OroCRM\Bundle\ContactBundle\Entity\Contact; |
18 | 16 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
19 | 17 | use OroCRM\Bundle\SalesBundle\Form\Type\LeadToOpportunityType; |