|
@@ 286-295 (lines=10) @@
|
| 283 |
|
* |
| 284 |
|
* @return null|AbstractExecutor |
| 285 |
|
*/ |
| 286 |
|
protected function loadFixtures(array $classNames, $omName = null, $registryName = 'doctrine', $purgeMode = null) |
| 287 |
|
{ |
| 288 |
|
$container = $this->getContainer(); |
| 289 |
|
|
| 290 |
|
$dbToolCollection = $container->get('liip_functional_test.services.database_tool_collection'); |
| 291 |
|
$dbTool = $dbToolCollection->get($omName, $registryName, $purgeMode, $this); |
| 292 |
|
$dbTool->setExcludedDoctrineTables($this->excludedDoctrineTables); |
| 293 |
|
|
| 294 |
|
return $dbTool->loadFixtures($classNames); |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
/** |
| 298 |
|
* @param array $paths Either symfony resource locators (@ BundleName/etc) or actual file paths |
|
@@ 308-318 (lines=11) @@
|
| 305 |
|
* |
| 306 |
|
* @return array |
| 307 |
|
*/ |
| 308 |
|
public function loadFixtureFiles(array $paths = [], $append = false, $omName = null, $registryName = 'doctrine', $purgeMode = null) |
| 309 |
|
{ |
| 310 |
|
/** @var ContainerInterface $container */ |
| 311 |
|
$container = $this->getContainer(); |
| 312 |
|
|
| 313 |
|
$dbToolCollection = $container->get('liip_functional_test.services.database_tool_collection'); |
| 314 |
|
$dbTool = $dbToolCollection->get($omName, $registryName, $purgeMode, $this); |
| 315 |
|
$dbTool->setExcludedDoctrineTables($this->excludedDoctrineTables); |
| 316 |
|
|
| 317 |
|
return $dbTool->loadAliceFixture($paths, $append); |
| 318 |
|
} |
| 319 |
|
|
| 320 |
|
/** |
| 321 |
|
* Callback function to be executed after Schema creation. |