src/OroCRM/Bundle/ChannelBundle/Tests/Functional/Controller/ChannelControllerTest.php 1 location
|
@@ 20-27 (lines=8) @@
|
| 17 |
|
const CHANNEL_NAME = 'some name'; |
| 18 |
|
const GRID_NAME = 'orocrm-channels-grid'; |
| 19 |
|
|
| 20 |
|
public function setUp() |
| 21 |
|
{ |
| 22 |
|
$this->initClient( |
| 23 |
|
['debug' => false], |
| 24 |
|
array_merge($this->generateBasicAuthHeader(), ['HTTP_X-CSRF-Header' => 1]) |
| 25 |
|
); |
| 26 |
|
$this->client->useHashNavigation(true); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function testCreateChannel() |
| 30 |
|
{ |
src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Controller/AbstractController.php 1 location
|
@@ 16-22 (lines=7) @@
|
| 13 |
|
/** @var bool */ |
| 14 |
|
protected $isRealGridRequest = false; |
| 15 |
|
|
| 16 |
|
protected function setUp() |
| 17 |
|
{ |
| 18 |
|
$this->initClient(['debug' => false], $this->generateBasicAuthHeader()); |
| 19 |
|
$this->client->useHashNavigation(true); |
| 20 |
|
|
| 21 |
|
$this->loadFixtures(['OroCRM\Bundle\MagentoBundle\Tests\Functional\Fixture\LoadMagentoChannel']); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
/** |
| 25 |
|
* @afterClass |
src/OroCRM/Bundle/ReportBundle/Tests/Functional/ControllersCrmTest.php 1 location
|
@@ 14-27 (lines=14) @@
|
| 11 |
|
*/ |
| 12 |
|
class ControllersCrmTest extends BaseControllersTest |
| 13 |
|
{ |
| 14 |
|
protected function setUp() |
| 15 |
|
{ |
| 16 |
|
$this->initClient( |
| 17 |
|
array(), |
| 18 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 19 |
|
); |
| 20 |
|
$this->client->useHashNavigation(true); |
| 21 |
|
$this->loadFixtures( |
| 22 |
|
array( |
| 23 |
|
'OroCRM\Bundle\ReportBundle\Tests\Functional\DataFixtures\LoadLeadSourceData', |
| 24 |
|
'OroCRM\Bundle\ReportBundle\Tests\Functional\DataFixtures\LoadLeadsData', |
| 25 |
|
) |
| 26 |
|
); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
/** |
| 30 |
|
* @param array $report |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/B2bCustomerControllerTest.php 1 location
|
@@ 32-40 (lines=9) @@
|
| 29 |
|
/** @var bool */ |
| 30 |
|
protected $isRealGridRequest = false; |
| 31 |
|
|
| 32 |
|
protected function setUp() |
| 33 |
|
{ |
| 34 |
|
$this->initClient( |
| 35 |
|
[], |
| 36 |
|
array_merge($this->generateBasicAuthHeader(), ['HTTP_X-CSRF-Header' => 1]) |
| 37 |
|
); |
| 38 |
|
$this->client->useHashNavigation(true); |
| 39 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures']); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
protected function postFixtureLoad() |
| 43 |
|
{ |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/LeadAddressControllersTest.php 1 location
|
@@ 16-24 (lines=9) @@
|
| 13 |
|
*/ |
| 14 |
|
class LeadAddressControllersTest extends WebTestCase |
| 15 |
|
{ |
| 16 |
|
protected function setUp() |
| 17 |
|
{ |
| 18 |
|
$this->initClient( |
| 19 |
|
array(), |
| 20 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 21 |
|
); |
| 22 |
|
$this->client->useHashNavigation(true); |
| 23 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures']); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
public function testCreateAddress() |
| 27 |
|
{ |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/LeadControllersTest.php 1 location
|
@@ 22-30 (lines=9) @@
|
| 19 |
|
/** @var bool */ |
| 20 |
|
protected $isRealGridRequest = false; |
| 21 |
|
|
| 22 |
|
protected function setUp() |
| 23 |
|
{ |
| 24 |
|
$this->initClient( |
| 25 |
|
[], |
| 26 |
|
array_merge($this->generateBasicAuthHeader(), ['HTTP_X-CSRF-Header' => 1]) |
| 27 |
|
); |
| 28 |
|
$this->client->useHashNavigation(true); |
| 29 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures']); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
public function testIndex() |
| 33 |
|
{ |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/OpportunityControllersTest.php 1 location
|
@@ 29-37 (lines=9) @@
|
| 26 |
|
/** @var bool */ |
| 27 |
|
protected $isRealGridRequest = false; |
| 28 |
|
|
| 29 |
|
protected function setUp() |
| 30 |
|
{ |
| 31 |
|
$this->initClient( |
| 32 |
|
['debug' => false], |
| 33 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 34 |
|
); |
| 35 |
|
$this->client->useHashNavigation(true); |
| 36 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures']); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
protected function postFixtureLoad() |
| 40 |
|
{ |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Controller/OpportunityStatusBoardTest.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
/** @var bool */ |
| 16 |
|
protected $isRealGridRequest = true; |
| 17 |
|
|
| 18 |
|
protected function setUp() |
| 19 |
|
{ |
| 20 |
|
$this->initClient( |
| 21 |
|
['debug' => false], |
| 22 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 23 |
|
); |
| 24 |
|
$this->client->useHashNavigation(true); |
| 25 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadOpportunityStatusBoardFixtures']); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function testIndex() |
| 29 |
|
{ |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Dashboard/CampaignByCloseRevenueTest.php 1 location
|
@@ 16-27 (lines=12) @@
|
| 13 |
|
/** @var Widget */ |
| 14 |
|
protected $widget; |
| 15 |
|
|
| 16 |
|
public function setUp() |
| 17 |
|
{ |
| 18 |
|
$this->initClient( |
| 19 |
|
['debug' => false], |
| 20 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 21 |
|
); |
| 22 |
|
$this->loadFixtures([ |
| 23 |
|
'OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadCampaignByCloseRevenueWidgetFixture' |
| 24 |
|
]); |
| 25 |
|
|
| 26 |
|
$this->widget = $this->getReference('widget_campaigns_by_close_revenue'); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
/** |
| 30 |
|
* @dataProvider widgetProvider |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Dashboard/CampaignLeadsTest.php 1 location
|
@@ 16-27 (lines=12) @@
|
| 13 |
|
/** @var Widget */ |
| 14 |
|
protected $widget; |
| 15 |
|
|
| 16 |
|
public function setUp() |
| 17 |
|
{ |
| 18 |
|
$this->initClient( |
| 19 |
|
['debug' => false], |
| 20 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 21 |
|
); |
| 22 |
|
$this->loadFixtures([ |
| 23 |
|
'OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadCampaignLeadsWidgetFixture' |
| 24 |
|
]); |
| 25 |
|
|
| 26 |
|
$this->widget = $this->getReference('widget_campaigns_leads'); |
| 27 |
|
} |
| 28 |
|
public function testGetWidgetConfigureDialog() |
| 29 |
|
{ |
| 30 |
|
$this->getConfigureDialog(); |
src/OroCRM/Bundle/SalesBundle/Tests/Functional/Dashboard/OpportunityByStatusTest.php 1 location
|
@@ 16-26 (lines=11) @@
|
| 13 |
|
/** @var Widget */ |
| 14 |
|
protected $widget; |
| 15 |
|
|
| 16 |
|
public function setUp() |
| 17 |
|
{ |
| 18 |
|
$this->initClient( |
| 19 |
|
['debug' => false], |
| 20 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 21 |
|
); |
| 22 |
|
$this->loadFixtures([ |
| 23 |
|
'OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadOpportunityByStatusWidgetFixture' |
| 24 |
|
]); |
| 25 |
|
$this->widget = $this->getReference('widget_opportunity_by_status'); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function testGetWidgetConfigureDialog() |
| 29 |
|
{ |