Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BasicTest.php
Go to the documentation of this file.
1 <?php
11 
13 {
19  protected $_expectedCode = 'basic';
20 
26  protected $_expectedBehaviors = [
30  ];
31 
32  protected function setUp()
33  {
34  parent::setUp();
35  $this->_model = new \Magento\ImportExport\Model\Source\Import\Behavior\Basic();
36  }
37 
43  public function testToArray()
44  {
45  $behaviorData = $this->_model->toArray();
46  $this->assertInternalType('array', $behaviorData);
47  $this->assertEquals($this->_expectedBehaviors, array_keys($behaviorData));
48  }
49 
55  public function testGetCode()
56  {
57  $this->assertEquals($this->_expectedCode, $this->_model->getCode());
58  }
59 }