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