@@ -114,9 +114,7 @@ public function drop(): void
114114
115115 self ::assertEquals (
116116 [
117- ProfileVisited::class => [
118- new SubscribeMethodMetadata ('handle ' , []),
119- ],
117+ ProfileVisited::class => new SubscribeMethodMetadata ('handle ' , []),
120118 ],
121119 $ metadata ->subscribeMethods ,
122120 );
@@ -141,8 +139,8 @@ public function handle(): void
141139
142140 self ::assertEquals (
143141 [
144- ProfileVisited::class => [ new SubscribeMethodMetadata ('handle ' , [])] ,
145- ProfileCreated::class => [ new SubscribeMethodMetadata ('handle ' , [])] ,
142+ ProfileVisited::class => new SubscribeMethodMetadata ('handle ' , []),
143+ ProfileCreated::class => new SubscribeMethodMetadata ('handle ' , []),
146144 ],
147145 $ metadata ->subscribeMethods ,
148146 );
@@ -163,7 +161,7 @@ public function handle(): void
163161
164162 self ::assertEquals (
165163 [
166- '* ' => [ new SubscribeMethodMetadata ('handle ' , [])] ,
164+ '* ' => new SubscribeMethodMetadata ('handle ' , []),
167165 ],
168166 $ metadata ->subscribeMethods ,
169167 );
@@ -189,17 +187,18 @@ public function profileCreated(ProfileCreated $profileCreated, string $aggregate
189187
190188 self ::assertEquals (
191189 [
192- ProfileVisited::class => [
193- new SubscribeMethodMetadata ('profileVisited ' , [
194- new ArgumentMetadata ('message ' , Message::class),
195- ]),
196- ],
197- ProfileCreated::class => [
198- new SubscribeMethodMetadata ('profileCreated ' , [
190+ ProfileVisited::class => new SubscribeMethodMetadata (
191+ 'profileVisited ' ,
192+ [new ArgumentMetadata ('message ' , Message::class)],
193+ ),
194+
195+ ProfileCreated::class => new SubscribeMethodMetadata (
196+ 'profileCreated ' ,
197+ [
199198 new ArgumentMetadata ('profileCreated ' , ProfileCreated::class),
200199 new ArgumentMetadata ('aggregateId ' , 'string ' ),
201- ]),
202- ] ,
200+ ]
201+ ) ,
203202 ],
204203 $ metadata ->subscribeMethods ,
205204 );
0 commit comments