Skip to content

Instantly share code, notes, and snippets.

@pboethig
Created July 17, 2016 15:49
Show Gist options
  • Save pboethig/5a2bfea1cc3f3344ef7b29c22e3f0d9f to your computer and use it in GitHub Desktop.
Save pboethig/5a2bfea1cc3f3344ef7b29c22e3f0d9f to your computer and use it in GitHub Desktop.
<?php
namespace Check\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class UserApiTest extends WebTestCase
{
public function testRouteIsAvaliable()
{
$client = static::createClient();
$crawler = $client->request('POST' ,'/api/user');
$this->assertEquals(500, $client->getResponse()->getStatusCode());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment