Get Product URL by product SKU Magento 2.

You can get the product URL by SKU in Magento 2 using ProductRepositoryInterface.

Using Magento\Catalog\Api\ProductRepositoryInterface you need to call the get($sku) method of the interface.

You can get product URL by store view level from Product URL by specific store view in Magento

If Product SKU not found, throws an error,

PHPUnit Test to check module is enable or not in Magento 2?

You can write a unit test for your module’s common function to check Module enables or not from a system configuration setting.

Every Professional third party Module contains the Is Active/Is Enable feature for a module from System -> Configuration settings.

To Check module is enable or not, you can write a common function in Helper file or any Common files.

How Magento Send Customer Welcome email after registration in Magento 2?

Every eCommerce platform contains native functionality for sending a welcome email after creating an account and Magento is also doing the same for sending Welcome email.

When you click on Create an Account button from frontend or create an account from Admin panel.

Both the events send mail to a customer after successfully create an account.
Magento 2 send Welcome email from the Magento/Customer/Model/EmailNotification file.

public function newAccount(), a function is responsible for sending Welcome email after a successful registration.