Created
October 21, 2013 16:21
-
-
Save sk01/7086620 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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