@@ -107,7 +107,7 @@ static function (string $eventName, array $params): void {
107107 $ this ->assertSame (['HasApi ' , 'Login ' , 'InactivePlugin ' ], $ provider ->getAllowedPlugins ());
108108 }
109109
110- public function testGetAllowedPluginDescriptionsReturnsDescriptionPerAllowedPlugin (): void
110+ public function testGetAllowedPluginMetadataReturnsDescriptionPerAllowedPlugin (): void
111111 {
112112 $ provider = $ this ->getMockBuilder (PluginListProvider::class)
113113 ->disableOriginalConstructor ()
@@ -123,12 +123,12 @@ public function testGetAllowedPluginDescriptionsReturnsDescriptionPerAllowedPlug
123123 ]);
124124
125125 $ this ->assertSame ([
126- 'Login ' => ' Login API description ' ,
127- 'ActivityLog ' => ' Activity log API description ' ,
128- ], $ provider ->getAllowedPluginDescriptions ());
126+ 'Login ' => [ ' description ' => ' Login API description '] ,
127+ 'ActivityLog ' => [ ' description ' => ' Activity log API description '] ,
128+ ], $ provider ->getAllowedPluginMetadata ());
129129 }
130130
131- public function testGetAllowedPluginDescriptionsReturnsEmptyStringWhenDescriptionMissing (): void
131+ public function testGetAllowedPluginMetadataReturnsEmptyStringWhenDescriptionMissing (): void
132132 {
133133 $ provider = $ this ->getMockBuilder (PluginListProvider::class)
134134 ->disableOriginalConstructor ()
@@ -140,10 +140,10 @@ public function testGetAllowedPluginDescriptionsReturnsEmptyStringWhenDescriptio
140140 $ provider ->method ('getPluginDescription ' )
141141 ->willReturn ('' );
142142
143- $ this ->assertSame (['Login ' => '' ] , $ provider ->getAllowedPluginDescriptions ());
143+ $ this ->assertSame (['Login ' => [ ' description ' => '' ]] , $ provider ->getAllowedPluginMetadata ());
144144 }
145145
146- public function testGetAllowedPluginDescriptionsContinuesWhenOnePluginDescriptionFails (): void
146+ public function testGetAllowedPluginMetadataContinuesWhenOnePluginDescriptionFails (): void
147147 {
148148 $ provider = $ this ->getMockBuilder (PluginListProvider::class)
149149 ->disableOriginalConstructor ()
@@ -162,10 +162,10 @@ public function testGetAllowedPluginDescriptionsContinuesWhenOnePluginDescriptio
162162 });
163163
164164 $ this ->assertSame ([
165- 'Login ' => ' Login API description ' ,
166- 'BrokenPlugin ' => '' ,
167- 'ActivityLog ' => ' Activity log API description ' ,
168- ], $ provider ->getAllowedPluginDescriptions ());
165+ 'Login ' => [ ' description ' => ' Login API description '] ,
166+ 'BrokenPlugin ' => [ ' description ' => '' ] ,
167+ 'ActivityLog ' => [ ' description ' => ' Activity log API description '] ,
168+ ], $ provider ->getAllowedPluginMetadata ());
169169 }
170170
171171 /**
0 commit comments