class WallabagRestControllerTest extends WebTestCase
{
- public function testEmptyGetEntries() {
+ public function testGetSalt()
+ {
+ $client = $this->createClient();
+ $client->request('GET', '/api/salts/admin.json');
+ $this->assertEquals(200, $client->getResponse()->getStatusCode());
+
+ $client->request('GET', '/api/salts/notfound.json');
+ $this->assertEquals(404, $client->getResponse()->getStatusCode());
+ }
+
+ public function testEmptyGetEntries()
+ {
$client = $this->createClient();
$client->request('GET', '/api/entries');
$this->assertTrue($client->getResponse()->isOk());
);
$this->assertEquals('[]', $client->getResponse()->getContent());
}
-}
\ No newline at end of file
+}