public function testIsShowOutOfStock() { $store = 1; $this->scopeConfigMock->expects($this->once())->method('isSetFlag')->with(Configuration::XML_PATH_SHOW_OUT_OF_STOCK, \Magento\Framework\Store\ScopeInterface::SCOPE_STORE, $store)->willReturn(1); $this->assertEquals(1, $this->model->isShowOutOfStock($store)); }