src/OroCRM/Bundle/CaseBundle/Tests/Functional/Entity/Manager/CaseEntityManagerTest.php 1 location
|
@@ 24-38 (lines=15) @@
|
| 21 |
|
*/ |
| 22 |
|
protected $manager; |
| 23 |
|
|
| 24 |
|
protected function setUp() |
| 25 |
|
{ |
| 26 |
|
$this->initClient( |
| 27 |
|
array(), |
| 28 |
|
array_merge($this->generateBasicAuthHeader(), array('HTTP_X-CSRF-Header' => 1)) |
| 29 |
|
); |
| 30 |
|
|
| 31 |
|
$this->loadFixtures( |
| 32 |
|
array( |
| 33 |
|
'OroCRM\Bundle\CaseBundle\Tests\Functional\DataFixtures\LoadCaseEntityData', |
| 34 |
|
) |
| 35 |
|
); |
| 36 |
|
|
| 37 |
|
$this->manager = $this->getContainer()->get('orocrm_case.manager'); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function testCreateCase() |
| 41 |
|
{ |
src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Manager/MagentoDeleteManagerTest.php 1 location
|
@@ 23-30 (lines=8) @@
|
| 20 |
|
*/ |
| 21 |
|
protected $em; |
| 22 |
|
|
| 23 |
|
protected function setUp() |
| 24 |
|
{ |
| 25 |
|
$this->initClient([], array_merge($this->generateBasicAuthHeader(), ['HTTP_X-CSRF-Header' => 1])); |
| 26 |
|
$this->em = $this->client->getKernel()->getContainer()->get('doctrine.orm.entity_manager'); |
| 27 |
|
|
| 28 |
|
$fixtures = ['OroCRM\Bundle\MagentoBundle\Tests\Functional\Fixture\LoadMagentoChannel']; |
| 29 |
|
$this->loadFixtures($fixtures); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
protected function postFixtureLoad() |
| 33 |
|
{ |
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/LeadControllersTest.php 1 location
|
@@ 21-29 (lines=9) @@
|
| 18 |
|
/** @var bool */ |
| 19 |
|
protected $isRealGridRequest = false; |
| 20 |
|
|
| 21 |
|
protected function setUp() |
| 22 |
|
{ |
| 23 |
|
$this->initClient( |
| 24 |
|
[], |
| 25 |
|
array_merge($this->generateBasicAuthHeader(), ['HTTP_X-CSRF-Header' => 1]) |
| 26 |
|
); |
| 27 |
|
$this->client->useHashNavigation(true); |
| 28 |
|
$this->loadFixtures(['OroCRM\Bundle\SalesBundle\Tests\Functional\Fixture\LoadSalesBundleFixtures']); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
public function testIndex() |
| 32 |
|
{ |