diff --git a/src/Client.php b/src/Client.php index 3064342..7834265 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1217,7 +1217,7 @@ public function containerCommit($container, $repo = null, $tag = null, $comment 'tag' => $tag, 'comment' => $comment, 'author' => $author, - 'pause' => $pause, + 'pause' => $pause ? 1 : 0, 'changes' => $changes, ) ), diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 8f3ff1b..7713149 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -630,6 +630,14 @@ public function testCommit() $this->expectPromiseResolveWith($json, $this->client->containerCommit('123', $config)); } + public function testCommitWithoutPause() + { + $json = array(); + $this->expectRequestFlow('post', 'commit?container=123&pause=0', $this->createResponseJson($json), 'expectJson'); + + $this->expectPromiseResolveWith($json, $this->client->containerCommit('123', null, null, null, null, false)); + } + public function testCommitWithAllParams() { $json = array();