RestBundle\Tests\Controller\RestControllerTest::testResourcesIndex PHP Method

testResourcesIndex() public method

public testResourcesIndex ( )
    public function testResourcesIndex()
    {
        $client = static::createClient();
        $crawler = $client->request('GET', '/api/v1/');
        $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
        $this->assertGreaterThan(0, $crawler->filter('html:contains("Resources Index")')->count());
    }