parent
4ec7ad75be
commit
0a833f12cf
@ -0,0 +1,34 @@ |
||||
<?php |
||||
namespace ChamiloLMS\Controller; |
||||
use Silex\WebTestCase; |
||||
|
||||
/** |
||||
* Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-07 at 12:15:50. |
||||
*/ |
||||
class LearnpathControllerTest extends WebTestCase |
||||
{ |
||||
/** |
||||
* @return mixed|\Symfony\Component\HttpKernel\HttpKernel |
||||
*/ |
||||
public function createApplication() |
||||
{ |
||||
$app = require '../../main/inc/global.inc.php'; |
||||
$app['debug'] = true; |
||||
$app['exception_handler']->disable(); |
||||
$app['monolog'] = $this->getMock('Monolog\Logger'); |
||||
|
||||
return $app; |
||||
} |
||||
|
||||
/** |
||||
* @covers ChamiloLMS\Controller\LearnpathController::indexAction |
||||
* @todo Implement testIndexAction(). |
||||
*/ |
||||
public function testIndexAction() |
||||
{ |
||||
$client = $this->createClient(); |
||||
$crawler = $client->request('GET', '/'); |
||||
$this->assertTrue($client->getResponse()->isOk()); |
||||
$this->assertCount(1, $crawler->filter('form')); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue