ADesigns\CalendarBundle\Tests\Controller\CalendarControllerTest::testLoadCalendarNotEmptyAction PHP Method

testLoadCalendarNotEmptyAction() public method

    public function testLoadCalendarNotEmptyAction()
    {
        $client = static::createClient();
        $client->request('GET', '/fc-load-events', array('start' => $this->startTime->getTimestamp(), 'end' => $this->endTime->getTimestamp()));
        $response = json_decode($client->getResponse()->getContent());
        $this->assertCount(1, $response);
        $this->assertNotEmpty($response[0]->title);
    }