mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 09:02:41 +00:00
536fa5c4fd
- Improves #47 - Still needs wrapping to actually output to clients
23 lines
No EOL
538 B
PHP
23 lines
No EOL
538 B
PHP
<?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);
|
|
}
|
|
} |