Ejemplo n.º 1
0
 /**
  * @test
  */
 public function it_should_refresh_docs()
 {
     /**
      *
      * Expectation
      *
      */
     $this->model->shouldReceive('transform')->with(true)->andReturn('body');
     $this->model->shouldReceive('getEsId')->andReturn(1);
     $this->client->shouldReceive('index')->with(['id' => '1', 'index' => 'Husband', 'type' => 'Husband', 'body' => 'body'])->andReturn();
     $this->index->shouldReceive('getName')->andReturn('Husband');
     /**
      *
      * Assertion
      *
      */
     $this->proxy->refreshDoc($this->model);
 }