Skip to content

Update the services Part #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@
*
* ## Parts
*
* * `services`: Symfony dependency injection container (DIC)
* * `services`: Includes methods related to the Symfony dependency injection container (DIC):
* * grabService
* * persistService
* * persistPermanentService
* * unpersistService
*
* See [WebDriver module](https://codeception.com/docs/modules/WebDriver#Loading-Parts-from-other-Modules)
* for general information on how to load parts of a framework module.
Expand Down
2 changes: 0 additions & 2 deletions src/Codeception/Module/Symfony/MailerAssertionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ trait MailerAssertionsTrait
{
/**
* Checks that no email was sent. This is an alias for seeEmailIsSent(0).
*
* @part email
*/
public function dontSeeEmailIsSent(): void
{
Expand Down
5 changes: 4 additions & 1 deletion src/Codeception/Module/Symfony/ServicesAssertionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ trait ServicesAssertionsTrait
* $em = $I->grabService('doctrine');
* ```
*
* @part services
* @param string $service
* @return mixed
* @part services
*/
public function grabService(string $service)
{
Expand All @@ -36,6 +36,7 @@ public function grabService(string $service)
/**
* Get service $serviceName and add it to the lists of persistent services.
*
* @part services
* @param string $serviceName
*/
public function persistService(string $serviceName): void
Expand All @@ -51,6 +52,7 @@ public function persistService(string $serviceName): void
* Get service $serviceName and add it to the lists of persistent services,
* making that service persistent between tests.
*
* @part services
* @param string $serviceName
*/
public function persistPermanentService(string $serviceName): void
Expand All @@ -66,6 +68,7 @@ public function persistPermanentService(string $serviceName): void
/**
* Remove service $serviceName from the lists of persistent services.
*
* @part services
* @param string $serviceName
*/
public function unpersistService(string $serviceName): void
Expand Down