The clean & modern RSS server that doesn't give you any crap.
https://thearsse.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
538 B
23 lines
538 B
7 years ago
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
namespace JKingWeb\NewsSync;
|
||
|
use JKingWeb\NewsSync\Rest\Request;
|
||
|
use JKingWeb\NewsSync\Rest\Response;
|
||
|
|
||
|
|
||
|
class TestNCNVersionDiscovery extends \PHPUnit\Framework\TestCase {
|
||
|
use Test\Tools;
|
||
|
|
||
|
function setUp() {
|
||
|
$conf = new Conf();
|
||
|
$this->data = new Test\RuntimeData($conf);
|
||
|
}
|
||
|
|
||
|
function testVersionList() {
|
||
|
$exp = new Response(200, ['v1-2']);
|
||
|
$req = new Request("GET", "/");
|
||
|
$h = new Rest\NextCloudNews\Versions($this->data);
|
||
|
$res = $h->dispatch($req);
|
||
|
$this->assertEquals($exp, $res);
|
||
|
}
|
||
|
}
|