diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-31 15:36:04 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-31 15:36:04 +0100 |
commit | 1990517b2263a080946853ed697a6d687262ae80 (patch) | |
tree | 8f676a051a25c65bf2130235e6b30e3f53030154 /src/AppBundle | |
parent | c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf (diff) | |
download | wallabag-1990517b2263a080946853ed697a6d687262ae80.tar.gz wallabag-1990517b2263a080946853ed697a6d687262ae80.tar.zst wallabag-1990517b2263a080946853ed697a6d687262ae80.zip |
remove Acme and AppBundle
Diffstat (limited to 'src/AppBundle')
-rw-r--r-- | src/AppBundle/AppBundle.php | 9 | ||||
-rw-r--r-- | src/AppBundle/Controller/DefaultController.php | 17 | ||||
-rw-r--r-- | src/AppBundle/Tests/Controller/DefaultControllerTest.php | 18 |
3 files changed, 0 insertions, 44 deletions
diff --git a/src/AppBundle/AppBundle.php b/src/AppBundle/AppBundle.php deleted file mode 100644 index 05123b67..00000000 --- a/src/AppBundle/AppBundle.php +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace AppBundle; | ||
4 | |||
5 | use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
6 | |||
7 | class AppBundle extends Bundle | ||
8 | { | ||
9 | } | ||
diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php deleted file mode 100644 index 541a7688..00000000 --- a/src/AppBundle/Controller/DefaultController.php +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace AppBundle\Controller; | ||
4 | |||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
7 | |||
8 | class DefaultController extends Controller | ||
9 | { | ||
10 | /** | ||
11 | * @Route("/app/example", name="homepage") | ||
12 | */ | ||
13 | public function indexAction() | ||
14 | { | ||
15 | return $this->render('default/index.html.twig'); | ||
16 | } | ||
17 | } | ||
diff --git a/src/AppBundle/Tests/Controller/DefaultControllerTest.php b/src/AppBundle/Tests/Controller/DefaultControllerTest.php deleted file mode 100644 index f35af752..00000000 --- a/src/AppBundle/Tests/Controller/DefaultControllerTest.php +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace AppBundle\Tests\Controller; | ||
4 | |||
5 | use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | ||
6 | |||
7 | class DefaultControllerTest extends WebTestCase | ||
8 | { | ||
9 | public function testIndex() | ||
10 | { | ||
11 | $client = static::createClient(); | ||
12 | |||
13 | $crawler = $client->request('GET', '/app/example'); | ||
14 | |||
15 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
16 | $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0); | ||
17 | } | ||
18 | } | ||