You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Codeception/Module/Symfony/ServicesAssertionsTrait.php
+4
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ public function grabService(string $serviceId): object
29
29
$this->fail("Service `{$serviceId}` is required by Codeception, but not loaded by Symfony since you're not using it anywhere in your app.\n
30
30
Recommended solution: Set it to `public` in your `config/services_test.php`/`.yaml`, see https://symfony.com/doc/current/service_container/alias_private.html#marking-services-as-public-private");
31
31
}
32
+
32
33
return$service;
33
34
}
34
35
@@ -75,9 +76,11 @@ public function unpersistService(string $serviceName): void
75
76
if (isset($this->persistentServices[$serviceName])) {
76
77
unset($this->persistentServices[$serviceName]);
77
78
}
79
+
78
80
if (isset($this->permanentServices[$serviceName])) {
79
81
unset($this->permanentServices[$serviceName]);
80
82
}
83
+
81
84
if ($this->clientinstanceof SymfonyConnector && isset($this->client->persistentServices[$serviceName])) {
0 commit comments