Gitlab\Tests\Api\RepositoriesTest::shouldCreateCommitCommentWithParams PHP Method

shouldCreateCommitCommentWithParams() public method

    public function shouldCreateCommitCommentWithParams()
    {
        $expectedArray = array('id' => 2, 'title' => 'A new comment');
        $api = $this->getApiMock();
        $api->expects($this->once())->method('post')->with('projects/1/repository/commits/abcd1234/comments', array('note' => 'A new comment', 'path' => '/some/file.txt', 'line' => 123, 'line_type' => 'old'))->will($this->returnValue($expectedArray));
        $this->assertEquals($expectedArray, $api->createCommitComment(1, 'abcd1234', 'A new comment', array('path' => '/some/file.txt', 'line' => 123, 'line_type' => 'old')));
    }