26 $this->fallbackResolver = $this->getMockForAbstractClass(
27 \
Magento\Framework\
App\ScopeFallbackResolverInterface::class,
32 $this->appConfig = $this->createMock(\
Magento\Framework\
App\Config::class);
34 ->disableOriginalConstructor()
38 $this->fallbackResolver,
46 $this->fallbackResolver->expects($this->once())
47 ->method(
'getFallbackScope')
49 ->willReturn([
null,
null]);
52 $this->valueChecker->isDifferentFromDefault(
56 [
'path' =>
'design/head/default_title']
63 $this->fallbackResolver->expects($this->once())
64 ->method(
'getFallbackScope')
66 ->willReturn([
'default', 0]);
67 $this->appConfig->expects($this->once())
69 ->with(
'design/head/default_title',
'default', 0)
71 $this->valueProcessor->expects($this->atLeastOnce())
73 ->willReturnArgument(0);
76 $this->valueChecker->isDifferentFromDefault(
80 [
'path' =>
'design/head/default_title']
87 $path =
'design/head/default_title';
88 $this->fallbackResolver->expects($this->once())
89 ->method(
'getFallbackScope')
91 ->willReturn([
'default', 0]);
93 ->expects($this->once())
95 ->with(
$path,
'default', 0)
101 $this->valueProcessor->expects($this->atLeastOnce())
103 ->willReturnArgument(0);
105 $this->valueChecker->isDifferentFromDefault(
testIsDifferentFromDefault()
testIsDifferentFromDefaultWithWebsiteScope()
testIsDifferentFromDefaultWithArrays()