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:
Christian Flothmann 2020-09-03 12:20:37 +02:00
commit fdcef0c625

View File

@ -1459,16 +1459,20 @@ abstract class FrameworkExtensionTest extends TestCase
$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 = [
[
(new ChildDefinition('cache.adapter.array'))
->replaceArgument(0, 12),
(new ChildDefinition('cache.adapter.filesystem'))
->replaceArgument(0, 'xctxZ1lyiH')
->replaceArgument(0, $expectedSeed)
->replaceArgument(1, 12),
(new ChildDefinition('cache.adapter.redis'))
->replaceArgument(0, new Reference('.cache_connection.kYdiLgf'))
->replaceArgument(1, 'xctxZ1lyiH')
->replaceArgument(1, $expectedSeed)
->replaceArgument(2, 12),
],
12,