Esempio n. 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->urlEncode = $this->getMockBuilder('Magento\\Framework\\Url\\EncoderInterface')->disableOriginalConstructor()->getMock();
     $this->fileValidatorMock = $this->getMockBuilder('Magento\\MediaStorage\\Model\\File\\Validator\\NotProtectedExtension')->disableOriginalConstructor()->getMock();
     $this->fileSystemMock = $this->getMockBuilder('Magento\\Framework\\Filesystem')->disableOriginalConstructor()->getMock();
     $this->requestMock = $this->getMockBuilder('Magento\\Framework\\App\\Request\\Http')->disableOriginalConstructor()->getMock();
     $this->uploaderFactoryMock = $this->getMock('Magento\\Framework\\File\\UploaderFactory', [], [], '', false);
 }
Esempio n. 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->stringHelper = new \Magento\Framework\Stdlib\StringUtils();
 }
Esempio n. 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->directoryHelper = $this->getMockBuilder('Magento\\Directory\\Helper\\Data')->disableOriginalConstructor()->getMock();
 }