---
title: "Discussion on \"Magento 2 - What is Unit Test?\" | Hashnode"
description: "Discussion on \"Magento 2 - What is Unit Test?\". Unit Test is the smallest part of testing in Magento 2. Module must has classes and each class must has method(s) on it, that method contains lot of logic, each method return can be null, string, integer, false, etc. So this is where unit test works,..."
url: "https://hashnode.com/posts/magento-2-what-is-unit-test/63badd7d145b6c6bd307c09e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Magento 2 - What is Unit Test?](https://fiko.me/magento-2-what-is-unit-test?utm_source=hashnode&utm_medium=feed)

Unit Test is the smallest part of testing in Magento 2. Module must has classes and each class must has method(s) on it, that method contains lot of logic, each method return can be null, string, integer, false, etc. So this is where unit test works,...

Jan 8, 2023 · 1 min read · fiko.me  
Updated Sep 27, 2023  
Read the article

-   [#magento](https://hashnode.com/tag/magento)
-   [#magento-2](https://hashnode.com/tag/magento-2)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Fiko Borizqy](https://hashnode.com/@fikoborizqy)

@fikoborizqy · Yogyakarta, Indonesia

  
[View profile](https://hashnode.com/@fikoborizqy)

Magento 2 Developer

I wrote these tutorials for myself in future when I forget for the next steps.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
