Skip to content

Commit 7a16f96

Browse files
authored
Update the services Part (#100)
1 parent e96e209 commit 7a16f96

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/Codeception/Module/Symfony.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@
114114
*
115115
* ## Parts
116116
*
117-
* * `services`: Symfony dependency injection container (DIC)
117+
* * `services`: Includes methods related to the Symfony dependency injection container (DIC):
118+
* * grabService
119+
* * persistService
120+
* * persistPermanentService
121+
* * unpersistService
118122
*
119123
* See [WebDriver module](https://codeception.com/docs/modules/WebDriver#Loading-Parts-from-other-Modules)
120124
* for general information on how to load parts of a framework module.

src/Codeception/Module/Symfony/MailerAssertionsTrait.php

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ trait MailerAssertionsTrait
1010
{
1111
/**
1212
* Checks that no email was sent. This is an alias for seeEmailIsSent(0).
13-
*
14-
* @part email
1513
*/
1614
public function dontSeeEmailIsSent(): void
1715
{

src/Codeception/Module/Symfony/ServicesAssertionsTrait.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ trait ServicesAssertionsTrait
1818
* $em = $I->grabService('doctrine');
1919
* ```
2020
*
21+
* @part services
2122
* @param string $service
2223
* @return mixed
23-
* @part services
2424
*/
2525
public function grabService(string $service)
2626
{
@@ -36,6 +36,7 @@ public function grabService(string $service)
3636
/**
3737
* Get service $serviceName and add it to the lists of persistent services.
3838
*
39+
* @part services
3940
* @param string $serviceName
4041
*/
4142
public function persistService(string $serviceName): void
@@ -51,6 +52,7 @@ public function persistService(string $serviceName): void
5152
* Get service $serviceName and add it to the lists of persistent services,
5253
* making that service persistent between tests.
5354
*
55+
* @part services
5456
* @param string $serviceName
5557
*/
5658
public function persistPermanentService(string $serviceName): void
@@ -66,6 +68,7 @@ public function persistPermanentService(string $serviceName): void
6668
/**
6769
* Remove service $serviceName from the lists of persistent services.
6870
*
71+
* @part services
6972
* @param string $serviceName
7073
*/
7174
public function unpersistService(string $serviceName): void

0 commit comments

Comments
 (0)