spec\Newscoop\GimmeBundle\Controller\EditorialCommentsApiControllerSpec::it_should_create_new_editorial_comment PHP Method

it_should_create_new_editorial_comment() public method

public it_should_create_new_editorial_comment ( Request $request, $form, $query, $article )
$request Symfony\Component\HttpFoundation\Request
    function it_should_create_new_editorial_comment(Request $request, $form, $query, $article)
    {
        $form->getData()->willReturn(array('comment' => 'test editorial comment'));
        $query->getOneOrNullResult()->willReturn($article);
        $response = $this->createCommentAction($request, 1, 1);
        $response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\Response');
        $response->getStatusCode()->shouldReturn(201);
    }