Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/phpunit/LearnpathControllerTest.php

34 lines
931 B

<?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'));
}
}