Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MultiTest.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class MultiTest extends \PHPUnit\Framework\TestCase
11 {
15  protected $block;
16 
17  protected function setUp()
18  {
19  $this->block = (new ObjectManager($this))
20  ->getObject(\Magento\Bundle\Block\Adminhtml\Catalog\Product\Composite\Fieldset\Options\Type\Multi::class);
21  }
22 
23  public function testSetValidationContainer()
24  {
25  $elementId = 'element-id';
26  $containerId = 'container-id';
27 
28  $result = $this->block->setValidationContainer($elementId, $containerId);
29 
30  $this->assertContains($elementId, $result);
31  $this->assertContains($containerId, $result);
32  }
33 }
$containerId
Definition: fieldset.phtml:13