1414use Ibexa \AdminUi \Behat \Page \ContentTypeGroupsPage ;
1515use Ibexa \AdminUi \Behat \Page \ContentTypePage ;
1616use Ibexa \AdminUi \Behat \Page \ContentTypeUpdatePage ;
17- use PHPUnit \ Framework \Assert ;
17+ use Webmozart \ Assert \Assert ;
1818
1919final readonly class ContentTypeContext implements Context
2020{
@@ -32,7 +32,7 @@ public function __construct(
3232 public function contentTypeHasProperGlobalProperties (TableNode $ table ): void
3333 {
3434 foreach ($ table ->getHash () as $ row ) {
35- Assert::assertTrue ($ this ->contentTypePage ->hasProperty ($ row ['label ' ], $ row ['value ' ]));
35+ Assert::true ($ this ->contentTypePage ->hasProperty ($ row ['label ' ], $ row ['value ' ]));
3636 }
3737 }
3838
@@ -58,7 +58,7 @@ public function createNewContentTypeGroup(): void
5858 public function contentTypeHasProperFields (TableNode $ table ): void
5959 {
6060 foreach ($ table ->getHash () as $ row ) {
61- Assert::assertTrue ($ this ->contentTypePage ->hasFieldType (
61+ Assert::true ($ this ->contentTypePage ->hasFieldType (
6262 ['Name ' => $ row ['fieldName ' ], 'Type ' => $ row ['fieldType ' ]]
6363 ));
6464 }
@@ -69,31 +69,31 @@ public function contentTypeHasProperFields(TableNode $table): void
6969 */
7070 public function thereSNoOnContentTypesList (string $ contentTypeName ): void
7171 {
72- Assert::assertFalse ($ this ->contentTypeGroupPage ->isContentTypeOnTheList ($ contentTypeName ));
72+ Assert::false ($ this ->contentTypeGroupPage ->isContentTypeOnTheList ($ contentTypeName ));
7373 }
7474
7575 /**
7676 * @Given there's no :contentTypeGroupName content type group on content type groups list
7777 */
7878 public function thereSNoOnContentTypesGroupList (string $ contentTypeGroupName ): void
7979 {
80- Assert::assertFalse ($ this ->contentTypeGroupsPage ->isContentTypeGroupOnTheList ($ contentTypeGroupName ));
80+ Assert::false ($ this ->contentTypeGroupsPage ->isContentTypeGroupOnTheList ($ contentTypeGroupName ));
8181 }
8282
8383 /**
8484 * @Given there's a :contentTypeGroupName content type group on content type groups list
8585 */
8686 public function thereSAOnContentTypesGroupList (string $ contentTypeGroupName ): void
8787 {
88- Assert::assertTrue ($ this ->contentTypeGroupsPage ->isContentTypeGroupOnTheList ($ contentTypeGroupName ));
88+ Assert::true ($ this ->contentTypeGroupsPage ->isContentTypeGroupOnTheList ($ contentTypeGroupName ));
8989 }
9090
9191 /**
9292 * @Given there's a :contentTypeName on content types list
9393 */
9494 public function thereAContentTypeOnContentTypesList (string $ contentTypeName ): void
9595 {
96- Assert::assertTrue ($ this ->contentTypeGroupPage ->isContentTypeOnTheList ($ contentTypeName ));
96+ Assert::true ($ this ->contentTypeGroupPage ->isContentTypeOnTheList ($ contentTypeName ));
9797 }
9898
9999 /**
@@ -187,31 +187,31 @@ public function iShouldBeOnContentTypePage(string $contentTypeName): void
187187 */
188188 public function thereAreNoContentTypes (): void
189189 {
190- Assert::assertFalse ($ this ->contentTypeGroupPage ->hasContentTypes ());
190+ Assert::false ($ this ->contentTypeGroupPage ->hasContentTypes ());
191191 }
192192
193193 /**
194194 * @Then there's an empty :contentTypeGroupName content type group on content type groups list
195195 */
196196 public function thereIsAnEmptyContentTypeGroup (string $ contentTypeGroupName ): void
197197 {
198- Assert::assertFalse ($ this ->contentTypeGroupPage ->hasAssignedContentItems ($ contentTypeGroupName ));
198+ Assert::false ($ this ->contentTypeGroupPage ->hasAssignedContentItems ($ contentTypeGroupName ));
199199 }
200200
201201 /**
202202 * @Then there's non-empty :contentTypeGroupName content type group on content type groups list
203203 */
204204 public function thereIsANonEmptyContentTypeGroup (string $ contentTypeGroupName ): void
205205 {
206- Assert::assertTrue ($ this ->contentTypeGroupPage ->hasAssignedContentItems ($ contentTypeGroupName ));
206+ Assert::true ($ this ->contentTypeGroupPage ->hasAssignedContentItems ($ contentTypeGroupName ));
207207 }
208208
209209 /**
210210 * @Then content type group :contentTypeGroupName cannot be selected
211211 */
212212 public function contentTypeGroupCannotBeSelected (string $ contentTypeGroupName ): void
213213 {
214- Assert::assertFalse ($ this ->contentTypeGroupsPage ->canBeSelected ($ contentTypeGroupName ));
214+ Assert::false ($ this ->contentTypeGroupsPage ->canBeSelected ($ contentTypeGroupName ));
215215 }
216216
217217 /**
0 commit comments