| @@ 134-144 (lines=11) @@ | ||
| 131 | * | |
| 132 | * @return string | |
| 133 | */ | |
| 134 | public function testView($returnValue) | |
| 135 |     { | |
| 136 | $crawler = $this->client->request( | |
| 137 | 'GET', | |
| 138 |             $this->getUrl('orocrm_sales_b2bcustomer_view', ['id' => $returnValue['id']]) | |
| 139 | ); | |
| 140 | ||
| 141 | $result = $this->client->getResponse(); | |
| 142 | $this->assertHtmlResponseStatusCodeEquals($result, 200); | |
| 143 | $this->assertContains($returnValue['name'], $crawler->html()); | |
| 144 | } | |
| 145 | ||
| 146 | /** | |
| 147 | * @param array $returnValue | |
| @@ 153-166 (lines=14) @@ | ||
| 150 | * | |
| 151 | * @return string | |
| 152 | */ | |
| 153 | public function testInfo($returnValue) | |
| 154 |     { | |
| 155 | $crawler = $this->client->request( | |
| 156 | 'GET', | |
| 157 | $this->getUrl( | |
| 158 | 'orocrm_sales_b2bcustomer_widget_info', | |
| 159 | ['id' => $returnValue['id'], '_widgetContainer' => 'block'] | |
| 160 | ) | |
| 161 | ); | |
| 162 | ||
| 163 | $result = $this->client->getResponse(); | |
| 164 | $this->assertHtmlResponseStatusCodeEquals($result, 200); | |
| 165 | $this->assertContains($returnValue['name'], $crawler->html()); | |
| 166 | } | |
| 167 | ||
| 168 | /** | |
| 169 | * @param array $returnValue | |
| @@ 132-142 (lines=11) @@ | ||
| 129 | * | |
| 130 | * @return string | |
| 131 | */ | |
| 132 | public function testView($returnValue) | |
| 133 |     { | |
| 134 | $crawler = $this->client->request( | |
| 135 | 'GET', | |
| 136 |             $this->getUrl('orocrm_sales_lead_view', ['id' => $returnValue['id']]) | |
| 137 | ); | |
| 138 | ||
| 139 | $result = $this->client->getResponse(); | |
| 140 | $this->assertHtmlResponseStatusCodeEquals($result, 200); | |
| 141 |         $this->assertContains("{$returnValue['name']} - Leads - Sales", $crawler->html()); | |
| 142 | } | |
| 143 | ||
| 144 | /** | |
| 145 | * @param array $returnValue | |
| @@ 125-135 (lines=11) @@ | ||
| 122 | * | |
| 123 | * @return string | |
| 124 | */ | |
| 125 | public function testView(array $returnValue) | |
| 126 |     { | |
| 127 | $crawler = $this->client->request( | |
| 128 | 'GET', | |
| 129 |             $this->getUrl('orocrm_sales_opportunity_view', ['id' => $returnValue['id']]) | |
| 130 | ); | |
| 131 | ||
| 132 | $result = $this->client->getResponse(); | |
| 133 | $this->assertHtmlResponseStatusCodeEquals($result, 200); | |
| 134 |         $this->assertContains("{$returnValue['name']} - Opportunities - Sales", $crawler->html()); | |
| 135 | } | |
| 136 | ||
| 137 | /** | |
| 138 | * @param array $returnValue | |