1313use Ibexa \ContentForms \User \View \UserUpdateView ;
1414use Ibexa \Contracts \ContentForms \Content \Form \Provider \GroupedContentFormFieldsProviderInterface ;
1515use Ibexa \Contracts \ContentForms \Data \Content \FieldData ;
16+ use Ibexa \Contracts \Core \Repository \Exceptions \Exception ;
1617use Ibexa \Contracts \Core \Repository \LocationService ;
1718use Ibexa \Contracts \Core \Repository \Repository ;
1819use Ibexa \Contracts \Core \Repository \UserService ;
@@ -183,18 +184,17 @@ public function testSetViewTemplateParametersWithMainLocationId(): void
183184 self ::assertSame (reset ($ parentLocations ), $ contentView ->getParameter ('parent_location ' ));
184185 }
185186
187+ /**
188+ * @throws Exception
189+ */
186190 public function testSetViewTemplateParametersWithoutContentEditViewInstance (): void
187191 {
188192 $ contentView = $ this ->createMock (View::class);
189193
190194 $ this ->locationService ->expects (self ::never ())
191195 ->method ('loadParentLocationsForDraftContent ' );
192196
193- self ::assertNull (
194- $ this ->viewParametersListener ->setContentEditViewTemplateParameters (
195- new PreContentViewEvent ($ contentView )
196- )
197- );
197+ $ this ->viewParametersListener ->setContentEditViewTemplateParameters (new PreContentViewEvent ($ contentView ));
198198 }
199199
200200 public function testSetUserUpdateViewTemplateParametersWithoutUserUpdateViewInstance (): void
@@ -204,10 +204,8 @@ public function testSetUserUpdateViewTemplateParametersWithoutUserUpdateViewInst
204204 $ this ->locationService ->expects (self ::never ())
205205 ->method ('loadParentLocationsForDraftContent ' );
206206
207- self ::assertNull (
208- $ this ->viewParametersListener ->setUserUpdateViewTemplateParameters (
209- new PreContentViewEvent ($ view )
210- )
207+ $ this ->viewParametersListener ->setUserUpdateViewTemplateParameters (
208+ new PreContentViewEvent ($ view )
211209 );
212210 }
213211
0 commit comments