public function testPutOrganizationAction() { $orga = $this->persister->organization('orga'); $here = $this->persister->location('here'); $this->persister->flush(); $this->logIn($this->admin); $fields = array('name' => 'rename', 'email' => '*****@*****.**', 'administrators' => $this->admin->getId(), 'locations' => array($here->getId())); $form = array('organization_form' => $fields); $this->client->request('PUT', "/api/organizations/{$orga->getId()}.json", $form); $data = $this->client->getResponse()->getContent(); $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); }