Esempio n. 1
0
 public function testConstruct()
 {
     $this->assertEquals('textarea', $this->model->getType());
     $this->assertEquals('textarea', $this->model->getExtType());
     $this->assertEquals(Editor::DEFAULT_ROWS, $this->model->getRows());
     $this->assertEquals(Editor::DEFAULT_COLS, $this->model->getCols());
     $this->configMock->expects($this->once())->method('getData')->with('enabled')->willReturn(true);
     $model = $this->objectManager->getObject('Magento\\Framework\\Data\\Form\\Element\\Editor', ['factoryElement' => $this->factoryMock, 'factoryCollection' => $this->collectionFactoryMock, 'escaper' => $this->escaperMock, 'data' => ['config' => $this->configMock]]);
     $this->assertEquals('wysiwyg', $model->getType());
     $this->assertEquals('wysiwyg', $model->getExtType());
 }