17 private $fixtureModelMock;
26 $this->fixtureModelMock = $this->createMock(\
Magento\Setup\Fixtures\FixtureModel::class);
33 $cacheMock = $this->createMock(\
Magento\Framework\
App\Cache::class);
35 $valueMock = $this->createMock(\
Magento\Framework\
App\Config::class);
42 [\
Magento\Framework\
App\CacheInterface::class, $cacheMock],
46 $this->fixtureModelMock
47 ->expects($this->once())
49 ->will($this->returnValue([
'config' => $valueMock]));
50 $this->fixtureModelMock
51 ->method(
'getObjectManager')
52 ->will($this->returnValue($objectManagerMock));
54 $cacheMock->method(
'clean');
55 $configMock->method(
'clean');
57 $this->model->execute();
62 $configMock = $this->getMockBuilder(\
Magento\Framework\
App\
Config\ValueInterface::class)
63 ->setMethods([
'save'])
64 ->getMockForAbstractClass();
65 $configMock->expects($this->never())->method(
'save');
68 $objectManagerMock->expects($this->never())
70 ->willReturn($configMock);
72 $this->fixtureModelMock
73 ->expects($this->never())
74 ->method(
'getObjectManager')
75 ->will($this->returnValue($objectManagerMock));
76 $this->fixtureModelMock
77 ->expects($this->once())
81 $this->model->execute();
86 $this->assertSame(
'Config Changes', $this->model->getActionTitle());
91 $this->assertSame([], $this->model->introduceParamLabels());
testNoFixtureConfigValue()
testIntroduceParamLabels()