+ // Try to remove an admin's client with a wrong user
+ $this->logInAs('bob');
+ $client->request('GET', '/developer');
+ $this->assertContains('no_client', $client->getResponse()->getContent());
+
+ // get an ID of a admin's client
+ $this->logInAs('admin');
+ $nbClients = $em->getRepository('WallabagApiBundle:Client')->findByUser($this->getLoggedInUserId());
+
+ $this->logInAs('bob');
+ $client->request('GET', '/developer/client/delete/'.$nbClients[0]->getId());
+ $this->assertEquals(403, $client->getResponse()->getStatusCode());
+
+ // Try to remove the admin's client with the good user
+ $this->logInAs('admin');