We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4df6bd commit ca2f32cCopy full SHA for ca2f32c
tests/ActionsTest.php
@@ -427,4 +427,22 @@ public function testCreateDesignDocCreatesDesignDocuments()
427
$this->assertInternalType('string', $ddoc);
428
});
429
}
430
+
431
+ /**
432
+ * @eris-repeat 5
433
+ */
434
+ public function testReplicateFunctionReplicatesDatabase()
435
+ {
436
+ $this->forAll(Generator\associative([
437
+ 'source' => Generator\constant('testdb'),
438
+ 'target' => Generator\constant('testdb_foreign')
439
+ ]))
440
+ ->then(function (array $opts) {
441
+ $promise = $this->action->replicate($opts);
442
+ $replicate = self::blockFn()($promise, $this->eventLoop);
443
444
+ $this->assertInstanceOf(\React\Promise\Promise::class, $promise);
445
+ $this->assertInternalType('string', $replicate);
446
+ });
447
+ }
448
0 commit comments