|
@@ 61-75 (lines=15) @@
|
| 58 |
|
$this->assertSame($netteDefinition->getClass(), $symfonyDefinition->getClass()); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
public function testTags() |
| 62 |
|
{ |
| 63 |
|
$netteDefinition = $this->netteContainerBuilder->addDefinition('someService') |
| 64 |
|
->setClass(stdClass::class) |
| 65 |
|
->addTag('someTag'); |
| 66 |
|
|
| 67 |
|
$this->transformFromNetteToSymfonyAndCompile(); |
| 68 |
|
|
| 69 |
|
$symfonyDefinition = $this->symfonyContainerBuilder->getDefinition('someService'); |
| 70 |
|
$this->assertSame(['someTag' => [[true]]], $symfonyDefinition->getTags()); |
| 71 |
|
|
| 72 |
|
$this->transformFromSymfonyToNette(); |
| 73 |
|
|
| 74 |
|
$this->assertSame($netteDefinition, $this->netteContainerBuilder->getDefinition('someService')); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testAutowiringStep2() |
| 78 |
|
{ |
|
@@ 77-91 (lines=15) @@
|
| 74 |
|
$this->assertSame($netteDefinition, $this->netteContainerBuilder->getDefinition('someService')); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testAutowiringStep2() |
| 78 |
|
{ |
| 79 |
|
$netteDefinition = $this->netteContainerBuilder->addDefinition('someService') |
| 80 |
|
->setClass(stdClass::class) |
| 81 |
|
->addTag('someTag'); |
| 82 |
|
|
| 83 |
|
$this->transformFromNetteToSymfonyAndCompile(); |
| 84 |
|
|
| 85 |
|
$symfonyDefinition = $this->symfonyContainerBuilder->getDefinition('someService'); |
| 86 |
|
$this->assertSame(['someTag' => [[true]]], $symfonyDefinition->getTags()); |
| 87 |
|
|
| 88 |
|
$this->transformFromSymfonyToNette(); |
| 89 |
|
|
| 90 |
|
$this->assertSame($netteDefinition, $this->netteContainerBuilder->getDefinition('someService')); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function testPreventDuplicating() |
| 94 |
|
{ |