@@ -1095,21 +1095,21 @@ public function testFindTaggedServiceIdsThrowsWhenAbstract()
1095
1095
$ builder ->findTaggedServiceIds ('foo ' , true );
1096
1096
}
1097
1097
1098
- public function testFindExcludedServiceIds ()
1098
+ public function testFindTaggedResourceIds ()
1099
1099
{
1100
1100
$ builder = new ContainerBuilder ();
1101
1101
$ builder ->register ('myservice ' , 'Bar\FooClass ' )
1102
1102
->addTag ('foo ' , ['foo ' => 'foo ' ])
1103
1103
->addTag ('bar ' , ['bar ' => 'bar ' ])
1104
1104
->addTag ('foo ' , ['foofoo ' => 'foofoo ' ])
1105
- ->addExcludeTag ('container.excluded ' );
1105
+ ->addResourceTag ('container.excluded ' );
1106
1106
1107
1107
$ expected = ['myservice ' => [['foo ' => 'foo ' ], ['foofoo ' => 'foofoo ' ]]];
1108
- $ this ->assertSame ($ expected , $ builder ->findExcludedServiceIds ('foo ' ));
1109
- $ this ->assertSame ([], $ builder ->findExcludedServiceIds ('foofoo ' ));
1108
+ $ this ->assertSame ($ expected , $ builder ->findTaggedResourceIds ('foo ' ));
1109
+ $ this ->assertSame ([], $ builder ->findTaggedResourceIds ('foofoo ' ));
1110
1110
}
1111
1111
1112
- public function testFindExcludedServiceIdsThrowsWhenNotExcluded ()
1112
+ public function testFindTaggedResourceIdsThrowsWhenNotExcluded ()
1113
1113
{
1114
1114
$ builder = new ContainerBuilder ();
1115
1115
$ builder ->register ('myservice ' , 'Bar\FooClass ' )
@@ -1118,8 +1118,8 @@ public function testFindExcludedServiceIdsThrowsWhenNotExcluded()
1118
1118
->addTag ('foo ' , ['foofoo ' => 'foofoo ' ]);
1119
1119
1120
1120
$ this ->expectException (InvalidArgumentException::class);
1121
- $ this ->expectExceptionMessage ('The service "myservice" tagged "foo" is missing the "container.excluded" tag. ' );
1122
- $ builder ->findExcludedServiceIds ('foo ' , true );
1121
+ $ this ->expectExceptionMessage ('The resource "myservice" tagged "foo" is missing the "container.excluded" tag. ' );
1122
+ $ builder ->findTaggedResourceIds ('foo ' );
1123
1123
}
1124
1124
1125
1125
public function testFindUnusedTags ()
0 commit comments