29 $this->context = $this->createMock(\
Magento\Framework\View\Element\Template\Context::class);
30 $this->sectionConfig = $this->createMock(\
Magento\Framework\Config\DataInterface::class);
31 $this->encoder = $this->createMock(\
Magento\Framework\Json\EncoderInterface::class);
33 $this->objectManagerHelper =
new ObjectManagerHelper($this);
34 $this->block = $this->objectManagerHelper->getObject(
35 \
Magento\Customer\Block\SectionConfig::class,
37 'context' => $this->context,
38 'sectionConfig' => $this->sectionConfig
45 $this->sectionConfig->expects($this->once())->method(
'get')->with(
'sections')->willReturn([
'data']);
47 $this->assertEquals([
'data'], $this->block->getSections());