minor #38045 [FrameworkBundle] relax some test assertions (xabbuh)
This PR was merged into the 4.4 branch.
Discussion
----------
[FrameworkBundle] relax some test assertions
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
Commits
-------
473e2933f0
relax some test assertions
This commit is contained in:
commit
fdcef0c625
@ -1459,16 +1459,20 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
|
|
||||||
$this->assertSame(ChainAdapter::class, $chain->getClass());
|
$this->assertSame(ChainAdapter::class, $chain->getClass());
|
||||||
|
|
||||||
|
$this->assertCount(2, $chain->getArguments());
|
||||||
|
$this->assertCount(3, $chain->getArguments()[0]);
|
||||||
|
|
||||||
|
$expectedSeed = $chain->getArgument(0)[1]->getArgument(0);
|
||||||
$expected = [
|
$expected = [
|
||||||
[
|
[
|
||||||
(new ChildDefinition('cache.adapter.array'))
|
(new ChildDefinition('cache.adapter.array'))
|
||||||
->replaceArgument(0, 12),
|
->replaceArgument(0, 12),
|
||||||
(new ChildDefinition('cache.adapter.filesystem'))
|
(new ChildDefinition('cache.adapter.filesystem'))
|
||||||
->replaceArgument(0, 'xctxZ1lyiH')
|
->replaceArgument(0, $expectedSeed)
|
||||||
->replaceArgument(1, 12),
|
->replaceArgument(1, 12),
|
||||||
(new ChildDefinition('cache.adapter.redis'))
|
(new ChildDefinition('cache.adapter.redis'))
|
||||||
->replaceArgument(0, new Reference('.cache_connection.kYdiLgf'))
|
->replaceArgument(0, new Reference('.cache_connection.kYdiLgf'))
|
||||||
->replaceArgument(1, 'xctxZ1lyiH')
|
->replaceArgument(1, $expectedSeed)
|
||||||
->replaceArgument(2, 12),
|
->replaceArgument(2, 12),
|
||||||
],
|
],
|
||||||
12,
|
12,
|
||||||
|
Reference in New Issue
Block a user