Gitlab\Tests\Api\GroupsTest::shouldCreateGroup PHP Method

shouldCreateGroup() public method

public shouldCreateGroup ( )
    public function shouldCreateGroup()
    {
        $expectedArray = array('id' => 1, 'name' => 'A new group');
        $api = $this->getApiMock();
        $api->expects($this->once())->method('post')->with('groups', array('name' => 'A new group', 'path' => 'a-new-group', 'description' => null, 'visibility_level' => 0))->will($this->returnValue($expectedArray));
        $this->assertEquals($expectedArray, $api->create('A new group', 'a-new-group'));
    }