File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ public function testPublicUrls(string $url): void
44
44
}
45
45
46
46
/**
47
- * A good practice for tests is to not use the service container, to make
47
+ * A good practice for such tests is to not use the service container, to make
48
48
* them more robust. However, in this example we must access to the container
49
49
* to get the entity manager and make a database query. The reason is that
50
50
* blog post fixtures are randomly generated and there's no guarantee that
51
51
* a given blog post slug will be available.
52
+ * You can also make some integration test to test services logic.
53
+ * See https://symfony.com/doc/current/testing.html#integration-tests
52
54
*/
53
55
public function testPublicBlogPost (): void
54
56
{
You can’t perform that action at this time.
0 commit comments