Skip to content

Commit

Permalink
load test entities in bootstrap instead in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Oct 9, 2013
1 parent 5e19a7d commit 34bcc14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
$container->init();
$container->initErrorHandlers();

$container->bootstrapModule('Doctrine');
$doctrine = $container->bootstrapModule('Doctrine');
$ecmd = $doctrine->registerEntityClassesMetadataDriver()->getEntityClassesMetadataDriver();
$ecmd->addClass('Psc\Doctrine\TestEntities\Tag');
$ecmd->addClass('Psc\Doctrine\TestEntities\Article');

$container->bootstrapModule('PHPExcel');
$container->bootstrapModuleIfExists('Imagine');

Expand Down
3 changes: 3 additions & 0 deletions tests/Psc/Doctrine/SynchronizerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public function setUp() {
}

protected function setUpModule($module) {
/*
this is done in bootstrap.php
$this->loadEntity('Psc\Doctrine\TestEntities\Tag', $module);
$this->loadEntity($this->entityClass, $module);
*/
}

// toCollection ist eine Repräsentation der Objekte aus dem Universum ($this->tags) als Tag labels oder als objekt: id,label
Expand Down

0 comments on commit 34bcc14

Please sign in to comment.