public its_deleteUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_unlocking ( $request, $article, $query, $number, $language ) |
public function its_deleteUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_unlocking($request, $article, $query, $number, $language)
{
$article->isLocked()->willReturn(false);
$request->getMethod()->willReturn('DELETE');
$query->getOneOrNullResult()->willReturn($article);
$response = $this->lockUnlockArticle($request, $number, $language);
$response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\Response');
$response->getStatusCode()->shouldReturn(403);
}