src/Oro/CRMTaskBundle/Tests/Selenium/ContactActivityListTest.php 1 location
|
@@ 14-31 (lines=18) @@
|
| 11 |
|
/** |
| 12 |
|
* @return string |
| 13 |
|
*/ |
| 14 |
|
public function testCreateContact() |
| 15 |
|
{ |
| 16 |
|
$contactName = 'Contact_'.mt_rand(); |
| 17 |
|
|
| 18 |
|
$login = $this->login(); |
| 19 |
|
/** @var Contacts $login */ |
| 20 |
|
$login->openContacts('OroCRM\Bundle\ContactBundle') |
| 21 |
|
->assertTitle('All - Contacts - Customers') |
| 22 |
|
->add() |
| 23 |
|
->assertTitle('Create Contact - Contacts - Customers') |
| 24 |
|
->setFirstName($contactName . '_first') |
| 25 |
|
->setLastName($contactName . '_last') |
| 26 |
|
->setOwner('admin') |
| 27 |
|
->setEmail($contactName . '@mail.com') |
| 28 |
|
->save(); |
| 29 |
|
|
| 30 |
|
return $contactName; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @depends testCreateContact |
src/OroCRM/Bundle/AccountBundle/Tests/Selenium/AssignContactTest.php 1 location
|
@@ 19-37 (lines=19) @@
|
| 16 |
|
/** |
| 17 |
|
* @return string |
| 18 |
|
*/ |
| 19 |
|
public function testCreateContact() |
| 20 |
|
{ |
| 21 |
|
$contactName = 'Contact_'.mt_rand(); |
| 22 |
|
|
| 23 |
|
$login = $this->login(); |
| 24 |
|
/** @var Contacts $login */ |
| 25 |
|
$login->openContacts('OroCRM\Bundle\ContactBundle') |
| 26 |
|
->assertTitle('All - Contacts - Customers') |
| 27 |
|
->add() |
| 28 |
|
->assertTitle('Create Contact - Contacts - Customers') |
| 29 |
|
->setFirstName($contactName . '_first') |
| 30 |
|
->setLastName($contactName . '_last') |
| 31 |
|
->setOwner('admin') |
| 32 |
|
->setEmail($contactName . '@mail.com') |
| 33 |
|
->save() |
| 34 |
|
->assertMessage('Contact saved'); |
| 35 |
|
|
| 36 |
|
return $contactName; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* @depends testCreateContact |
src/OroCRM/Bundle/ContactBundle/Tests/Selenium/ContactActivityListTest.php 1 location
|
@@ 14-31 (lines=18) @@
|
| 11 |
|
/** |
| 12 |
|
* @return string |
| 13 |
|
*/ |
| 14 |
|
public function testCreateContact() |
| 15 |
|
{ |
| 16 |
|
$contactName = 'Contact_'.mt_rand(); |
| 17 |
|
|
| 18 |
|
$login = $this->login(); |
| 19 |
|
/** @var Contacts $login */ |
| 20 |
|
$login->openContacts('OroCRM\Bundle\ContactBundle') |
| 21 |
|
->assertTitle('All - Contacts - Customers') |
| 22 |
|
->add() |
| 23 |
|
->assertTitle('Create Contact - Contacts - Customers') |
| 24 |
|
->setFirstName($contactName . '_first') |
| 25 |
|
->setLastName($contactName . '_last') |
| 26 |
|
->setOwner('admin') |
| 27 |
|
->setEmail($contactName . '@mail.com') |
| 28 |
|
->save(); |
| 29 |
|
|
| 30 |
|
return $contactName; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @depends testCreateContact |
src/OroCRM/Bundle/ContactBundle/Tests/Selenium/ContactContactedCountTest.php 1 location
|
@@ 19-37 (lines=19) @@
|
| 16 |
|
* Test check that newly created Contact has no contact counter |
| 17 |
|
* @return string |
| 18 |
|
*/ |
| 19 |
|
public function testCreateContact() |
| 20 |
|
{ |
| 21 |
|
$contactName = 'Contact_'.mt_rand(); |
| 22 |
|
|
| 23 |
|
$login = $this->login(); |
| 24 |
|
/** @var Contacts $login */ |
| 25 |
|
$login->openContacts('OroCRM\Bundle\ContactBundle') |
| 26 |
|
->assertTitle('All - Contacts - Customers') |
| 27 |
|
->add() |
| 28 |
|
->assertTitle('Create Contact - Contacts - Customers') |
| 29 |
|
->setFirstName($contactName . '_first') |
| 30 |
|
->setLastName($contactName . '_last') |
| 31 |
|
->setOwner('admin') |
| 32 |
|
->setEmail(self::EMAIL) |
| 33 |
|
->save() |
| 34 |
|
->checkContactStatus(['Not contacted yet']); |
| 35 |
|
|
| 36 |
|
return $contactName; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* @depends testCreateContact |