use Slim\Http\Response;
/**
- * Class LinksTest
+ * Class GetLinksTest
*
- * Test Links REST API services.
- * Note that api call results are tightly related to data contained in ReferenceLinkDB.
+ * Test get Link list REST API service.
+ *
+ * @see http://shaarli.github.io/api-documentation/#links-links-collection-get
*
* @package Shaarli\Api\Controllers
*/
-class LinksTest extends \PHPUnit_Framework_TestCase
+class GetLinksTest extends \PHPUnit_Framework_TestCase
{
/**
* @var string datastore to test write operations
*/
public function setUp()
{
- $this->conf = new \ConfigManager('tests/utils/config/configJson.json.php');
+ $this->conf = new \ConfigManager('tests/utils/config/configJson');
$this->refDB = new \ReferenceLinkDB();
$this->refDB->write(self::$testDatastore);
$this->assertEquals($order[$cpt++], $link['id']);
}
- // Check first element fields\
+ // Check first element fields
$first = $data[0];
$this->assertEquals('http://domain.tld/?WDWyig', $first['url']);
$this->assertEquals('WDWyig', $first['shorturl']);