File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66use Hackzilla \Bundle \TicketBundle \Entity \TicketMessage ;
77use Hackzilla \Bundle \TicketBundle \Manager \TicketManagerInterface ;
88use Hackzilla \Bundle \TicketBundle \Tests \Functional \Entity \User ;
9+ use Twig \Template ;
910use Vich \UploaderBundle \Event \Events ;
1011
1112/**
@@ -56,4 +57,11 @@ public function testConfiguredFileUploadSubscriber()
5657
5758 $ this ->assertArrayHasKey (Events::POST_UPLOAD , $ listeners );
5859 }
60+
61+ public function testTemplateLoad ()
62+ {
63+ $ twig = static ::$ kernel ->getContainer ()->get ('twig ' );
64+
65+ $ this ->assertInstanceOf (Template::class, $ twig ->loadTemplate ('@HackzillaTicket/Ticket/index.html.twig ' ));
66+ }
5967}
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <html >
3+ <head >
4+ <title >{% block title %}HackzillaTicketBundle{% endblock %}</title >
5+ </head >
6+ <body >
7+ {% block body %}{% endblock %}
8+ </body >
9+ </html >
Original file line number Diff line number Diff line change 55use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
66use Hackzilla \Bundle \TicketBundle \HackzillaTicketBundle ;
77use Hackzilla \Bundle \TicketBundle \Tests \Functional \Entity \User ;
8+ use Knp \Bundle \PaginatorBundle \KnpPaginatorBundle ;
89use Symfony \Bundle \FrameworkBundle \FrameworkBundle ;
910use Symfony \Bundle \FrameworkBundle \Kernel \MicroKernelTrait ;
1011use Symfony \Bundle \SecurityBundle \SecurityBundle ;
12+ use Symfony \Bundle \TwigBundle \TwigBundle ;
1113use Symfony \Component \Config \Loader \LoaderInterface ;
1214use Symfony \Component \DependencyInjection \ContainerBuilder ;
1315use Symfony \Component \HttpKernel \Kernel ;
@@ -39,6 +41,8 @@ public function registerBundles()
3941 new FrameworkBundle (),
4042 new SecurityBundle (),
4143 new DoctrineBundle (),
44+ new KnpPaginatorBundle (),
45+ new TwigBundle (),
4246 new HackzillaTicketBundle (),
4347 new TestBundle (),
4448 ];
Original file line number Diff line number Diff line change 2828 "php" : " ^5.6 || ^7.0" ,
2929 "doctrine/doctrine-bundle" : " ^1.4" ,
3030 "doctrine/orm" : " ^2.4.8" ,
31- "knplabs/knp-paginator-bundle" : " ^2.3 || ^3.0 || ^4.0" ,
31+ "knplabs/knp-paginator-bundle" : " ^2.6 || ^3.0 || ^4.0" ,
3232 "symfony/config" : " ^2.8 || ^3.0 || ^4.0" ,
3333 "symfony/console" : " ^2.8 || ^3.0 || ^4.0" ,
3434 "symfony/dependency-injection" : " ^2.8 || ^3.0 || ^4.0" ,
You can’t perform that action at this time.
0 commit comments