@@ -4,15 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\ORM\EntityRepository; |
7 | - |
|
8 | 7 | use Doctrine\Common\DataFixtures\AbstractFixture; |
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | - |
|
11 | 9 | use Oro\Bundle\OrganizationBundle\Entity\BusinessUnit; |
12 | 10 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
13 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | 12 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
15 | - |
|
16 | 13 | use Oro\Bundle\UserBundle\Entity\UserManager; |
17 | 14 | use Oro\Bundle\UserBundle\Entity\User; |
18 | 15 |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\TestFrameworkBundle\Tests\Performance; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpKernel\Kernel; |
8 | 7 | use Symfony\Component\DependencyInjection\Container; |
9 | - |
|
10 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
11 | 9 | |
12 | 10 | class LoadTest extends WebTestCase |
@@ -3,10 +3,7 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Tests\Functional\Controller; |
4 | 4 | |
5 | 5 | use Symfony\Component\DomCrawler\Form; |
6 | - |
|
7 | -use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
|
8 | 6 | use Oro\Bundle\DataGridBundle\Tests\Functional\AbstractDatagridTestCase; |
9 | - |
|
10 | 7 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
11 | 8 | use OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures; |
12 | 9 | use OroCRM\Bundle\SalesBundle\Entity\B2bCustomer; |
@@ -3,13 +3,10 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Tests\Functional\EventListner; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
8 | 7 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
9 | - |
|
10 | 8 | use OroCRM\Bundle\SalesBundle\Entity\B2bCustomer; |
11 | 9 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
12 | -use OroCRM\Bundle\SalesBundle\Entity\OpportunityStatus; |
|
13 | 10 | |
14 | 11 | /** |
15 | 12 | * @outputBuffering enabled |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return $this; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $subject |
|
37 | + */ |
|
35 | 38 | public function setSubject($subject) |
36 | 39 | { |
37 | 40 | $this->subject->clear(); |
@@ -55,6 +55,9 @@ discard block |
||
55 | 55 | return $this; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $name |
|
60 | + */ |
|
58 | 61 | public function setName($name) |
59 | 62 | { |
60 | 63 | $this->name->clear(); |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | )->text(); |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param string $channel |
|
98 | + */ |
|
93 | 99 | public function setChannel($channel) |
94 | 100 | { |
95 | 101 | $element = $this->test->byXpath("//div[starts-with(@id,'s2id_orocrm_sales_opportunity_form_dataChannel')]/a"); |
@@ -108,6 +114,9 @@ discard block |
||
108 | 114 | return $this; |
109 | 115 | } |
110 | 116 | |
117 | + /** |
|
118 | + * @param string $customer |
|
119 | + */ |
|
111 | 120 | public function setB2BCustomer($customer) |
112 | 121 | { |
113 | 122 | $this->b2b_customer->click(); |
@@ -129,6 +138,9 @@ discard block |
||
129 | 138 | ->byXpath("//div[starts-with(@id,'s2id_orocrm_sales_opportunity_form_customer')]/a/span")->text(); |
130 | 139 | } |
131 | 140 | |
141 | + /** |
|
142 | + * @param string $probability |
|
143 | + */ |
|
132 | 144 | public function setProbability($probability) |
133 | 145 | { |
134 | 146 | $this->probability->clear(); |
@@ -142,6 +154,9 @@ discard block |
||
142 | 154 | return $this->probability->value(); |
143 | 155 | } |
144 | 156 | |
157 | + /** |
|
158 | + * @param string $budget |
|
159 | + */ |
|
145 | 160 | public function seBudget($budget) |
146 | 161 | { |
147 | 162 | $this->budget->clear(); |
@@ -155,6 +170,9 @@ discard block |
||
155 | 170 | return $this->budget->value(); |
156 | 171 | } |
157 | 172 | |
173 | + /** |
|
174 | + * @param string $customerNeed |
|
175 | + */ |
|
158 | 176 | public function setCustomerNeed($customerNeed) |
159 | 177 | { |
160 | 178 | return $this->setContentToTinymceElement('orocrm_sales_opportunity_form_customerNeed', $customerNeed); |
@@ -208,6 +226,9 @@ discard block |
||
208 | 226 | return $this->closeDate->value(); |
209 | 227 | } |
210 | 228 | |
229 | + /** |
|
230 | + * @param string $status |
|
231 | + */ |
|
211 | 232 | public function checkStatus($status) |
212 | 233 | { |
213 | 234 | $this->assertElementPresent("//div[starts-with(@class, 'badge')][contains(., '{$status}')]"); |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | /** @var Workflow */ |
33 | 33 | protected $workflow; |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $subject |
|
37 | + */ |
|
35 | 38 | public function setSubject($subject) |
36 | 39 | { |
37 | 40 | $this->subject = $this->test->byXpath("//*[@data-ftid='orocrm_task_subject']"); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | return $this->subject->value(); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $description |
|
54 | + */ |
|
49 | 55 | public function setDescription($description) |
50 | 56 | { |
51 | 57 | return $this->setContentToTinymceElement('orocrm_task_description', $description); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Validator\Constraint; |
6 | 6 | use Symfony\Component\Validator\ConstraintValidator; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\TaskBundle\Validator\Constraints\DueDateRequired; |
9 | 8 | use OroCRM\Bundle\TaskBundle\Entity\Task; |
10 | 9 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Validator\Constraint; |
6 | 6 | use Symfony\Component\Validator\ConstraintValidator; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\TaskBundle\Validator\Constraints\DueDateRequired; |
9 | 8 | use OroCRM\Bundle\TaskBundle\Entity\Task; |
10 | 9 |