Skip to content

Commit 59a2104

Browse files
committed
Update CouchDB version in test mocks
1 parent fec6eb7 commit 59a2104

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/PHPCouchDB/DatabaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DatabaseTest extends \PHPUnit\Framework\TestCase
1414
public function setUp() {
1515
// create the first request to check we can connect, can be added to
1616
// the mocks for any test that wants it
17-
$couchdb1 = '{"couchdb":"Welcome","uuid":"fce3d5aabfe189c988273c0ffa8d375b","version":"1.6.0","vendor":{"name":"Ubuntu","version":"15.10"}}';
17+
$couchdb1 = '{"couchdb":"Welcome","version":"2.0.0","vendor":{"name":"The Apache Software Foundation"}}';
1818
$this->db_response = new Response(200, [], $couchdb1);
1919

2020
// offer a use_response for when selecting this database

tests/PHPCouchDB/DocumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DocumentTest extends \PHPUnit\Framework\TestCase
1414
public function setUp() {
1515
// create the first request to check we can connect, can be added to
1616
// the mocks for any test that wants it
17-
$couchdb1 = '{"couchdb":"Welcome","uuid":"fce3d5aabfe189c988273c0ffa8d375b","version":"1.6.0","vendor":{"name":"Ubuntu","version":"15.10"}}';
17+
$couchdb1 = '{"couchdb":"Welcome","version":"2.0.0","vendor":{"name":"The Apache Software Foundation"}}';
1818
$this->db_response = new Response(200, [], $couchdb1);
1919

2020
// offer a use_response for when selecting this database

tests/PHPCouchDB/ServerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ServerTest extends \PHPUnit\Framework\TestCase
1414
public function setUp() {
1515
// create the first request to check we can connect, can be added to
1616
// the mocks for any test that wants it
17-
$couchdb1 = '{"couchdb":"Welcome","uuid":"fce3d5aabfe189c988273c0ffa8d375b","version":"1.6.0","vendor":{"name":"Ubuntu","version":"15.10"}}';
17+
$couchdb1 = '{"couchdb":"Welcome","version":"2.0.0","vendor":{"name":"The Apache Software Foundation"}}';
1818
$this->db_response = new Response(200, [], $couchdb1);
1919
}
2020

@@ -39,7 +39,7 @@ public function testGetVersion() {
3939

4040
// userland code starts
4141
$server = new \PHPCouchDB\Server(["client" => $client]);
42-
$this->assertEquals("1.6.0", $server->getVersion());
42+
$this->assertEquals("2.0.0", $server->getVersion());
4343

4444
}
4545

0 commit comments

Comments
 (0)