Commit 8fda1524 authored by Karamel's avatar Karamel
Browse files

Add revision in version.

parent c6fbc482
......@@ -26,6 +26,7 @@ use \Pasteque\Server\Model\Option;
class VersionAPI implements API {
const VERSION = '8.1';
const REVISION = 2;
const LEVEL = 8;
protected $dao;
......@@ -51,6 +52,7 @@ class VersionAPI implements API {
$version = new GenericModel();
$version->set('version', static::VERSION);
$version->set('level', $dbLevel);
$version->set('revision', static::REVISION);
return $version;
}
......
......@@ -71,6 +71,7 @@ class HttpVersionTest extends TestCase
$data = json_decode($resp, true);
$this->assertNotNull($data);
$this->assertEquals(VersionAPI::VERSION, $data['version']);
$this->assertEquals(VersionAPI::REVISION, $data['revision']);
$this->assertEquals(VersionAPI::LEVEL, $data['level']);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment