public function testItAddsTheSkuAsSerchCriteria()
 {
     $this->mockSearchCriteriaBuilder->expects($this->once())->method('addFilter')->with('sku', '%test%', 'like');
     $this->mockSearchResult->expects($this->once())->method('getItems')->willReturn([]);
     $this->productStatusAdapter->getProductStatusMatchingSku('test');
 }
 public function testItTranslatesProductRepositorySearchResultsIntoTheDesiredReturnArrayFormat()
 {
     $this->mockSearchResults->method('getItems')->willReturn([$this->getMockEnabledProduct('test1'), $this->getMockDisabledProduct('test2')]);
     $expectedResult = ['test1' => ProductStatusAdapterInterface::ENABLED, 'test2' => ProductStatusAdapterInterface::DISABLED];
     $this->assertSame($expectedResult, $this->productStatusAdapter->getStatusForProductsMatchingSku('test'));
 }