wallabag/tests/Wallabag/ApiBundle/Controller/TaggingRuleRestControllerTest.php
Jeremy Benoist 34be2d5de4
Add ability to import/export tagging rules
- Add missing translations
- Add some tests
- Add `/api/taggingrule/export` API endpoint
- Add baggy theme
- Add error message when importing tagging rules failed
- Also fix all translations (I think we are good now)
2019-07-08 09:38:32 +02:00

16 lines
476 B
PHP

<?php
namespace Tests\Wallabag\ApiBundle\Controller;
use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
class TaggingRuleRestControllerTest extends WallabagApiTestCase
{
public function testExportEntry()
{
$this->client->request('GET', '/api/taggingrule/export');
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
}
}