Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ModuleInstallationTest.php
Go to the documentation of this file.
1 <?php
7 
8 class ModuleInstallationTest extends \PHPUnit\Framework\TestCase
9 {
10  public function testSampleModuleInstallation()
11  {
14  \Magento\Framework\Module\ModuleListInterface::class
15  );
16  $this->assertTrue(
17  $moduleList->has('Magento_TestModuleSample'),
18  'Test module [Magento_TestModuleSample] is not installed'
19  );
20  }
21 }