docs(articles): Magento and Symfony examples side by side, request lifecycle as a Mermaid diagram
en/articles/magento-to-symfony/quality/testing.md
+6
−1
1
1
# Tests
2
2
3
+
::::columns
4
+
:::col
3
5
**Magento** · controller integration test
4
6
5
7
```php
16
18
);
17
19
}
18
20
```
19
−
21
+
:::
22
+
:::col
20
23
**Symfony** · WebTestCase + Foundry
21
24
22
25
```php
39
42
}
40
43
}
41
44
```
45
+
:::
46
+
::::
42
47
43
48
- **Unit:** a plain `TestCase`, just like in Magento.
44
49
- **KernelTestCase:** the real container; `self::getContainer()->get(Importer::class)` returns even private services, as long as they are used somewhere.