64 $this->productManagement = $this->getMockBuilder(\
Magento\Catalog\Api\ProductManagementInterface::class)
65 ->disableOriginalConstructor()
67 $this->configurableManagement = $this
69 ->disableOriginalConstructor()
71 $this->categoryManagement = $this->getMockBuilder(\
Magento\Catalog\Api\CategoryManagementInterface::class)
72 ->disableOriginalConstructor()
74 $this->customerManagement = $this->getMockBuilder(\
Magento\Customer\Api\CustomerManagementInterface::class)
75 ->disableOriginalConstructor()
77 $this->websiteManagement = $this->getMockBuilder(\
Magento\Store\Api\WebsiteManagementInterface::class)
78 ->disableOriginalConstructor()
80 $this->storeManagement = $this->getMockBuilder(\
Magento\Store\Api\StoreManagementInterface::class)
81 ->disableOriginalConstructor()
85 $this->productManagement,
86 $this->configurableManagement,
87 $this->categoryManagement,
88 $this->customerManagement,
89 $this->websiteManagement,
90 $this->storeManagement
101 $this->productManagement->expects($this->once())
105 $this->assertInternalType(
107 $this->model->getAllProductsCount()
118 $this->configurableManagement->expects($this->once())
122 $this->assertInternalType(
124 $this->model->getConfigurableCount()
135 $this->productManagement->expects($this->once())
140 $this->assertInternalType(
142 $this->model->getActiveCatalogSize()
153 $this->categoryManagement->expects($this->once())
157 $this->assertInternalType(
159 $this->model->getCategoryCount()
170 $this->customerManagement->expects($this->once())
174 $this->assertInternalType(
176 $this->model->getCustomerCount()
187 $this->websiteManagement->expects($this->once())
191 $this->assertInternalType(
193 $this->model->getWebsiteCount()
204 $this->storeManagement->expects($this->once())
208 $this->assertInternalType(
210 $this->model->getStoreViewsCount()
testGetAllProductsCount()
testGetConfigurableCount()
testGetActiveCatalogSize()