@@ 40-49 (lines=10) @@ | ||
37 | * Sets up the fixture, for example, opens a network connection. |
|
38 | * This method is called before a test is executed. |
|
39 | */ |
|
40 | protected function setUp() |
|
41 | { |
|
42 | $em = $this->getMockedEntityManager(); |
|
43 | $node = new Node(); |
|
44 | $node->setId(666); |
|
45 | $nt = new NodeTranslation(); |
|
46 | $nt->setNode($node); |
|
47 | $translator = new Translator('nl'); |
|
48 | $this->object = new FormSubmissionExportListConfigurator($em, $nt, $translator); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @return \Doctrine\ORM\EntityManager |
@@ 31-39 (lines=9) @@ | ||
28 | * Sets up the fixture, for example, opens a network connection. |
|
29 | * This method is called before a test is executed. |
|
30 | */ |
|
31 | protected function setUp() |
|
32 | { |
|
33 | $em = $this->getMockedEntityManager(); |
|
34 | $node = new Node(); |
|
35 | $node->setId(666); |
|
36 | $nt = new NodeTranslation(); |
|
37 | $nt->setNode($node); |
|
38 | $this->object = new FormSubmissionAdminListConfigurator($em, $nt); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @return \Doctrine\ORM\EntityManager |