Тести

← Тести

Ashterix

docs(articles): Magento and Symfony examples side by side, request lifecycle as a Mermaid diagram

uk/articles/magento-to-symfony/quality/testing.md +6 −1

1 1 # Тести
2 2
3 + ::::columns
4 + :::col
3 5 **Magento** · інтеграційний тест контролера
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:** звичайний `TestCase`, як і в Magento.
44 49 - **KernelTestCase:** справжній контейнер, `self::getContainer()->get(Importer::class)` дає навіть приватні сервіси, якщо їх десь використано.