Skip to content

Instantly share code, notes, and snippets.

@sk01
Created October 21, 2013 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sk01/7086620 to your computer and use it in GitHub Desktop.
Save sk01/7086620 to your computer and use it in GitHub Desktop.
<?php
namespace Seedrecruit\CoreBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex(){
//TODO: be sure solr is working properly before to uncomment the tests
$this->assertTrue(true);
}
// public function testSolr(){
//
// $client = static::createClient(array(
// 'environment' => 'test',
// 'debug' => true,
// ));
//
// $url = $client->getContainer()->get('router')->generate('seedrecruit_core_homepage');
//
// $crawler = $client->request('GET', $url);
//
// $this->assertEquals( 0, $crawler->filter('html:contains("solr")')->count(), 'Solr is not working.');
// }
//
//
// public function testIndex(){
//
// $client = static::createClient(array(
// 'environment' => 'test',
// 'debug' => true,
// ));
//
// $url = $client->getContainer()->get('router')->generate('seedrecruit_core_homepage');
//
// $client->request('GET', $url);
//
// $this->assertTrue($client->getResponse()->isSuccessful(), $url . ' should return 200');
// }
//
// public function testIndexPost(){
//
// $client = static::createClient(array(
// 'environment' => 'test',
// 'debug' => true,
// ));
//
// $url = $client->getContainer()->get('router')->generate('seedrecruit_core_homepage');
//
// //Sending empty POST
// $client->request('POST', $url);
//
// $this->assertTrue($client->getResponse()->isSuccessful(), $url . ' should return 200');
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment