File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tests/Symfony/Bundle/Command Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 14
14
namespace ApiPlatform \Tests \Symfony \Bundle \Command ;
15
15
16
16
use ApiPlatform \OpenApi \OpenApi ;
17
+ use Symfony \Bridge \PhpUnit \ExpectDeprecationTrait ;
17
18
use Symfony \Bundle \FrameworkBundle \Console \Application ;
18
19
use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
19
20
use Symfony \Component \Console \Tester \ApplicationTester ;
22
23
23
24
/**
24
25
* @author Amrouche Hamza <hamza.simperfit@gmail.com>
26
+ *
27
+ * TODO Remove group legacy in 4.0
28
+ *
29
+ * @group legacy
25
30
*/
26
31
class OpenApiCommandTest extends KernelTestCase
27
32
{
33
+ use ExpectDeprecationTrait;
34
+
28
35
private ApplicationTester $ tester ;
29
36
30
37
protected function setUp (): void
@@ -114,10 +121,10 @@ private function assertYaml(string $data): void
114
121
}
115
122
116
123
/**
117
- * TODO Remove in 4.0
124
+ * TODO Remove in 4.0.
118
125
*/
119
126
private function handleDeprecations (): void
120
127
{
121
- $ this ->expectDeprecationMessage ( ' The "openapiContext " option is deprecated, use "openapi" instead. ' );
128
+ $ this ->expectDeprecation ( ' Since api-platform/core 3.1: The "%s " option is deprecated, use "openapi" instead. ' );
122
129
}
123
130
}
You can’t perform that action at this time.
0 commit comments