@@ 81-90 (lines=10) @@ | ||
78 | * @expectedException LogicException |
|
79 | * @expectedExceptionMessage You must register the FormServiceProvider to use the SilexUserServiceProvider |
|
80 | */ |
|
81 | public function testRegisterWitoutForm() |
|
82 | { |
|
83 | $this->app->register(new ServiceControllerServiceProvider()); |
|
84 | $this->app->register(new TwigServiceProvider()); |
|
85 | $this->app->register(new SessionServiceProvider()); |
|
86 | $this->app->register(new LocaleServiceProvider()); |
|
87 | $this->app->register(new TranslationServiceProvider()); |
|
88 | $this->app->register(new ValidatorServiceProvider()); |
|
89 | $this->app->register(new SilexUserServiceProvider()); |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @expectedException LogicException |
|
@@ 96-106 (lines=11) @@ | ||
93 | * @expectedException LogicException |
|
94 | * @expectedExceptionMessage You must register the DoctrineOrmServiceProvider to use the SilexUserServiceProvider |
|
95 | */ |
|
96 | public function testRegisterWitoutDoctrineOrm() |
|
97 | { |
|
98 | $this->app->register(new ServiceControllerServiceProvider()); |
|
99 | $this->app->register(new TwigServiceProvider()); |
|
100 | $this->app->register(new SessionServiceProvider()); |
|
101 | $this->app->register(new LocaleServiceProvider()); |
|
102 | $this->app->register(new TranslationServiceProvider()); |
|
103 | $this->app->register(new ValidatorServiceProvider()); |
|
104 | $this->app->register(new FormServiceProvider()); |
|
105 | $this->app->register(new SilexUserServiceProvider()); |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * @expectedException LogicException |