public function testAllocation()
 {
     $result = $this->catRepository->allocation();
     $data = $result->getData()->getGatewayValue();
     $this->assertCount(1, $data);
     $this->assertEquals(0, $data[0]['shards']);
 }
 public function testAllocation()
 {
     $return = 'itsMe';
     $type = null;
     $className = 'myClassName';
     $request = $this->getMockBuilder('Elastification\\Client\\Request\\RequestInterface')->disableOriginalConstructor()->getMock();
     $this->requestRepositoryFactory->expects($this->once())->method('create')->with($this->equalTo($className), $this->equalTo(null), $this->equalTo(null), $this->equalTo($this->serializer))->willReturn($request);
     $this->repositoryClassMap->expects($this->once())->method('getClassName')->with(CatRepositoryInterface::CAT_ALLOCATION)->willReturn($className);
     $this->client->expects($this->once())->method('send')->willReturn($return);
     $result = $this->indexRepository->allocation();
     $this->assertSame($return, $result);
 }