| @@ 18-28 (lines=11) @@ | ||
| 15 | */ |
|
| 16 | private $templateElementsLoader; |
|
| 17 | ||
| 18 | protected function setUp(): void |
|
| 19 | { |
|
| 20 | $this->templateElementsLoader = $this->container->getByType(TemplateElementsLoader::class); |
|
| 21 | ||
| 22 | $configuration = $this->container->getByType(ConfigurationInterface::class); |
|
| 23 | $configuration->resolveOptions([ |
|
| 24 | 'source' => [__DIR__], |
|
| 25 | 'destination' => TEMP_DIR, |
|
| 26 | 'annotationGroups' => ['todo'] |
|
| 27 | ]); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function testAddElementToTemplate(): void |
|
| 31 | { |
|
| @@ 22-32 (lines=11) @@ | ||
| 19 | */ |
|
| 20 | private $templateFactory; |
|
| 21 | ||
| 22 | protected function setUp(): void |
|
| 23 | { |
|
| 24 | $this->templateFactory = $this->container->getByType(TemplateFactoryInterface::class); |
|
| 25 | ||
| 26 | /** @var ConfigurationInterface $configuration */ |
|
| 27 | $configuration = $this->container->getByType(ConfigurationInterface::class); |
|
| 28 | $configuration->resolveOptions([ |
|
| 29 | 'source' => [__DIR__], |
|
| 30 | 'destination' => __DIR__ . '/Destination' |
|
| 31 | ]); |
|
| 32 | } |
|
| 33 | ||
| 34 | public function testCreate(): void |
|
| 35 | { |
|