public function testBatchUpdateActionUpdatesContent()
 {
     $this->setAuthorized(true);
     $content1 = new Content();
     $content2 = new Content();
     $this->manager->method('find')->will($this->returnValueMap([[1, $content1], [2, $content2]]));
     $this->form->method('isValid')->willReturn(true);
     $this->form->method('getData')->willReturn($this->getBatch());
     $this->manager->expects($this->exactly(2))->method('update')->withConsecutive([$content1], [$content2]);
     $response = $this->controller->batchUpdateAction(new Request());
     $expectedResponse = new JsonResponse(null, JsonResponse::HTTP_NO_CONTENT);
     $this->assertEquals($expectedResponse, $response);
 }