skip to Main Content

Magento2 unit test error "Error: Call to a member function getDirectoryWrite() on null"

Magento2 unit test for block file for admin grid extending MagentoBackendBlockWidgetGridExtended is giving error "Error: Call to a member function getDirectoryWrite() on null" added below mocks, still error continues. $this->_filesystem = $this->createMock(Filesystem::class); $this->_directory = $this->createMock(DirectoryWrite::class); $this->_filesystem->method('getDirectoryWrite')->willReturn($this->_directory); Can anyone help here?

VIEW QUESTION

Magento help: Install Magento 2 through composer

I try to install Magento 2.4.5 through composer but showing an error "Could not find package project-community-edition with version 2.4.5." I used cmd:composer create-project --repository-url=https://repo.magento.com/ project-community-edition:2.4.5 in the folder C:xampphtdocs in cmd. following is my composer.jason file. { "name": "mycompany/sample-module-minimal",…

VIEW QUESTION
Back To Top
Search