File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Tests/Unit/Consumption/Extension Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 44
55use Enqueue \Consumption \Context \PostMessageReceived ;
66use Enqueue \Consumption \PostMessageReceivedExtensionInterface ;
7- use Symfony \Component \ HttpKernel \ DependencyInjection \ ServicesResetter ;
7+ use Symfony \Contracts \ Service \ ResetInterface ;
88
99class ResetServicesExtension implements PostMessageReceivedExtensionInterface
1010{
11- /**
12- * @var ServicesResetter
13- */
14- private $ resetter ;
15-
16- public function __construct (ServicesResetter $ resetter )
11+ public function __construct (private ResetInterface $ resetter )
1712 {
18- $ this ->resetter = $ resetter ;
1913 }
2014
2115 public function onPostMessageReceived (PostMessageReceived $ context ): void
Original file line number Diff line number Diff line change 1313use PHPUnit \Framework \TestCase ;
1414use Psr \Log \LoggerInterface ;
1515use Symfony \Component \HttpKernel \DependencyInjection \ServicesResetter ;
16+ use Symfony \Component \HttpKernel \DependencyInjection \ServicesResetterInterface ;
17+ use Symfony \Contracts \Service \ResetInterface ;
1618
1719class ResetServicesExtensionTest extends TestCase
1820{
@@ -50,8 +52,8 @@ protected function createContext(): PostMessageReceived
5052 /**
5153 * @return MockObject|ManagerRegistry
5254 */
53- protected function createResetterMock (): ServicesResetter
55+ protected function createResetterMock (): ResetInterface
5456 {
55- return $ this ->createMock (ServicesResetter ::class);
57+ return $ this ->createMock (ResetInterface ::class);
5658 }
5759}
You can’t perform that action at this time.
0 commit comments