Create a PHPUnit Test in Magento 2
In your module create a Test folder and add a unit test file
app\code\AzCodez\MagentoTraining\Test\Unit\TestUnitTest.php
Add code to your test class
<?php
use PHPUnit\Framework\TestCase;
class TestUnitTest extends TestCase
{
public function tes...
blog.azcodez.com1 min read