File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ services:
8282 arguments :
8383 - ' @hackzilla_ticket.ticket_manager'
8484 - ' @hackzilla_ticket.user_manager'
85- - ' @doctrine'
85+ - ' @doctrine.orm.entity_manager '
8686 - ' @translator'
8787 # BC: Replace 5th argument with "@parameter_bag" after bumping "symfony/dependency-injection" to "^4.1"
8888 - ' @service_container'
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Hackzilla \Bundle \TicketBundle \Tests \Functional \Command ;
4+
5+ use Hackzilla \Bundle \TicketBundle \Tests \Functional \WebTestCase ;
6+ use Symfony \Bundle \FrameworkBundle \Console \Application ;
7+ use Symfony \Component \Console \Command \Command ;
8+
9+ /**
10+ * @author Javier Spagnoletti <phansys@gmail.com>
11+ */
12+ class ApplicationTest extends WebTestCase
13+ {
14+ /**
15+ * @dataProvider getCommands
16+ *
17+ * @param string $commandName
18+ */
19+ public function testCommandRegistration ($ commandName )
20+ {
21+ $ this ->markTestSkipped ('"friendsofsymfony/user-bundle" must be installed in order to run this test ' );
22+
23+ $ application = new Application (static ::$ kernel );
24+
25+ $ this ->assertInstanceOf (Command::class, $ application ->find ($ commandName ));
26+ }
27+
28+ public function getCommands ()
29+ {
30+ return [
31+ ['ticket:autoclosing ' ],
32+ ['ticket:create ' ],
33+ ];
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments