6 declare(strict_types=1);
14 use PHPUnit\Framework\TestCase;
15 use PHPUnit_Framework_MockObject_MockObject as Mock;
30 private $scopeConfigMock;
35 private $deploymentConfigMock;
39 $this->scopeConfigMock = $this->getMockForAbstractClass(ScopeConfigInterface::class);
40 $this->deploymentConfigMock = $this->createMock(DeploymentConfig::class);
43 $this->scopeConfigMock,
44 $this->deploymentConfigMock,
52 'level' => Monolog::DEBUG,
55 $this->scopeConfigMock->expects($this->once())
59 $this->deploymentConfigMock->expects($this->once())
60 ->method(
'isAvailable')
64 $this->model->isHandling($record)
71 'level' => Monolog::DEBUG,
74 $this->scopeConfigMock->expects($this->never())
76 $this->deploymentConfigMock->expects($this->once())
77 ->method(
'isAvailable')
81 $this->model->isHandling($record)
88 'level' => Monolog::DEBUG,
91 $this->scopeConfigMock->expects($this->once())
95 $this->deploymentConfigMock->expects($this->once())
96 ->method(
'isAvailable')
100 $this->model->isHandling($record)
testIsHandlingNotInstalled()