src/OroCRM/Bundle/AccountBundle/Tests/Functional/ControllersTest.php 1 location
|
@@ 97-109 (lines=13) @@
|
| 94 |
|
/** |
| 95 |
|
* @depends testUpdate |
| 96 |
|
*/ |
| 97 |
|
public function testContactWidget($id) |
| 98 |
|
{ |
| 99 |
|
$this->client->request( |
| 100 |
|
'GET', |
| 101 |
|
$this->getUrl( |
| 102 |
|
'orocrm_account_widget_contacts_info', |
| 103 |
|
array('id' => $id, '_widgetContainer' => 'dialog') |
| 104 |
|
) |
| 105 |
|
); |
| 106 |
|
//just verify method OK |
| 107 |
|
$result = $this->client->getResponse(); |
| 108 |
|
$this->assertHtmlResponseStatusCodeEquals($result, 200); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* @depends testUpdate |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/OpportunityControllersTest.php 1 location
|
@@ 143-155 (lines=13) @@
|
| 140 |
|
* |
| 141 |
|
* @return string |
| 142 |
|
*/ |
| 143 |
|
public function testInfo(array $returnValue) |
| 144 |
|
{ |
| 145 |
|
$this->client->request( |
| 146 |
|
'GET', |
| 147 |
|
$this->getUrl( |
| 148 |
|
'orocrm_sales_opportunity_info', |
| 149 |
|
['id' => $returnValue['id'], '_widgetContainer' => 'block'] |
| 150 |
|
) |
| 151 |
|
); |
| 152 |
|
|
| 153 |
|
$result = $this->client->getResponse(); |
| 154 |
|
$this->assertHtmlResponseStatusCodeEquals($result, 200); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
/** |
| 158 |
|
* @param array $returnValue |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Dashboard/CampaignLeadsTest.php 1 location
|
@@ 61-72 (lines=12) @@
|
| 58 |
|
$this->assertEquals($requestData['expectedResultCount'], $data[0]->value); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
protected function getConfigureDialog() |
| 62 |
|
{ |
| 63 |
|
$this->client->request( |
| 64 |
|
'GET', |
| 65 |
|
$this->getUrl( |
| 66 |
|
'oro_dashboard_configure', |
| 67 |
|
['id' => $this->widget->getId(), '_widgetContainer' => 'dialog'] |
| 68 |
|
) |
| 69 |
|
); |
| 70 |
|
$response = $this->client->getResponse(); |
| 71 |
|
$this->assertEquals($response->getStatusCode(), 200, 'Failed in getting configure widget dialog window !'); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |
| 75 |
|
* @return array |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Dashboard/OpportunityByStatusTest.php 1 location
|
@@ 59-70 (lines=12) @@
|
| 56 |
|
$this->assertEquals($requestData['expectedResultCount'], $data[0]->value); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
protected function getConfigureDialog() |
| 60 |
|
{ |
| 61 |
|
$this->client->request( |
| 62 |
|
'GET', |
| 63 |
|
$this->getUrl( |
| 64 |
|
'oro_dashboard_configure', |
| 65 |
|
['id' => $this->widget->getId(), '_widgetContainer' => 'dialog'] |
| 66 |
|
) |
| 67 |
|
); |
| 68 |
|
$response = $this->client->getResponse(); |
| 69 |
|
$this->assertEquals($response->getStatusCode(), 200, 'Failed in getting configure widget dialog window !'); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
/** |
| 73 |
|
* @return array |