@@ -20,10 +20,14 @@ class PriorityTaggedServiceTraitTest extends \PHPUnit_Framework_TestCase
20
20
public function testThatCacheWarmersAreProcessedInPriorityOrder ()
21
21
{
22
22
$ services = array (
23
- 'my_service1 ' => array (0 => array ('priority ' => 100 )),
24
- 'my_service2 ' => array (0 => array ('priority ' => 200 )),
25
- 'my_service3 ' => array (0 => array ('priority ' => -500 )),
26
- 'my_service4 ' => array (0 => array ()),
23
+ 'my_service1 ' => array (array ('priority ' => 100 )),
24
+ 'my_service2 ' => array (array ('priority ' => 200 )),
25
+ 'my_service3 ' => array (array ('priority ' => -500 )),
26
+ 'my_service4 ' => array (array ()),
27
+ 'my_service5 ' => array (array ()),
28
+ 'my_service6 ' => array (array ('priority ' => -500 )),
29
+ 'my_service7 ' => array (array ('priority ' => -499 )),
30
+ 'my_service8 ' => array (array ('priority ' => 1 )),
27
31
);
28
32
29
33
$ definition = $ this ->getMock ('Symfony\Component\DependencyInjection\Definition ' );
@@ -48,8 +52,12 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
48
52
->with (0 , array (
49
53
new Reference ('my_service2 ' ),
50
54
new Reference ('my_service1 ' ),
55
+ new Reference ('my_service8 ' ),
51
56
new Reference ('my_service4 ' ),
57
+ new Reference ('my_service5 ' ),
58
+ new Reference ('my_service7 ' ),
52
59
new Reference ('my_service3 ' ),
60
+ new Reference ('my_service6 ' ),
53
61
));
54
62
55
63
(new PriorityTaggedServiceTraitImplementation ())->test ('my_custom_tag ' , $ container );
0 commit comments