Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConstructorArgumentTest.php
Go to the documentation of this file.
1 <?php
7 
8 class ConstructorArgumentTest extends \PHPUnit\Framework\TestCase
9 {
10  public function testInterface()
11  {
12  $argument = ['configuration', 'array', true, null];
13  $model = new \Magento\Setup\Module\Di\Compiler\ConstructorArgument($argument);
14  $this->assertEquals($argument[0], $model->getName());
15  $this->assertEquals($argument[1], $model->getType());
16  $this->assertTrue($model->isRequired());
17  $this->assertNull($model->getDefaultValue());
18  }
19 }