@@ -144,22 +144,6 @@ protected function assertContent(Content $content, array $data): void
144144 } catch (PropertyNotFoundException ) {
145145 // Do nothing
146146 }
147-
148- self ::assertSame (
149- [
150- 'id ' => $ content ->id ,
151- 'mainLocationId ' => $ content ->mainLocationId ,
152- 'name ' => $ content ->name ,
153- 'languageCode ' => $ content ->languageCode ,
154- 'isVisible ' => $ content ->isVisible ,
155- 'contentInfo ' => $ content ->contentInfo ,
156- 'fields ' => $ content ->fields ,
157- 'mainLocation ' => '[An instance of Netgen\IbexaSiteApi\API\Values\Location] ' ,
158- 'innerContent ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\Content\Content] ' ,
159- 'innerVersionInfo ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo] ' ,
160- ],
161- $ content ->__debugInfo (),
162- );
163147 }
164148
165149 protected function assertContentInfo (APIContentInfo $ contentInfo , array $ data ): void
@@ -203,34 +187,6 @@ protected function assertContentInfo(APIContentInfo $contentInfo, array $data):
203187 } catch (PropertyNotFoundException ) {
204188 // Do nothing
205189 }
206-
207- self ::assertSame (
208- [
209- 'id ' => $ contentInfo ->id ,
210- 'contentTypeId ' => $ contentInfo ->contentTypeId ,
211- 'sectionId ' => $ contentInfo ->sectionId ,
212- 'currentVersionNo ' => $ contentInfo ->currentVersionNo ,
213- 'published ' => $ contentInfo ->published ,
214- 'isHidden ' => $ contentInfo ->isHidden ,
215- 'isVisible ' => !$ contentInfo ->isHidden ,
216- 'ownerId ' => $ contentInfo ->ownerId ,
217- 'modificationDate ' => $ contentInfo ->modificationDate ,
218- 'publishedDate ' => $ contentInfo ->publishedDate ,
219- 'alwaysAvailable ' => $ contentInfo ->alwaysAvailable ,
220- 'remoteId ' => $ contentInfo ->remoteId ,
221- 'mainLanguageCode ' => $ contentInfo ->mainLanguageCode ,
222- 'mainLocationId ' => $ contentInfo ->mainLocationId ,
223- 'name ' => $ contentInfo ->name ,
224- 'languageCode ' => $ contentInfo ->languageCode ,
225- 'contentTypeIdentifier ' => $ contentInfo ->contentTypeIdentifier ,
226- 'contentTypeName ' => $ contentInfo ->contentTypeName ,
227- 'contentTypeDescription ' => $ contentInfo ->contentTypeDescription ,
228- 'innerContentInfo ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo] ' ,
229- 'innerContentType ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType] ' ,
230- 'mainLocation ' => '[An instance of Netgen\IbexaSiteApi\API\Values\Location] ' ,
231- ],
232- $ contentInfo ->__debugInfo (),
233- );
234190 }
235191
236192 protected function assertFields (Content $ content , array $ data ): void
@@ -300,25 +256,6 @@ protected function assertField(Content $content, string $identifier, string $lan
300256 } catch (PropertyNotFoundException ) {
301257 // Do nothing
302258 }
303-
304- self ::assertSame (
305- [
306- 'id ' => $ field ->id ,
307- 'fieldDefIdentifier ' => $ field ->fieldDefIdentifier ,
308- 'value ' => $ field ->value ,
309- 'languageCode ' => $ field ->languageCode ,
310- 'fieldTypeIdentifier ' => $ field ->fieldTypeIdentifier ,
311- 'name ' => $ field ->name ,
312- 'description ' => $ field ->description ,
313- 'content ' => '[An instance of Netgen\IbexaSiteApi\API\Values\Content] ' ,
314- 'contentId ' => $ field ->content ->id ,
315- 'isEmpty ' => $ field ->isEmpty (),
316- 'isSurrogate ' => $ field ->isSurrogate (),
317- 'innerField ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\Content\Field] ' ,
318- 'innerFieldDefinition ' => $ field ->innerFieldDefinition ,
319- ],
320- $ field ->__debugInfo (),
321- );
322259 }
323260
324261 protected function assertLocation (Location $ location , array $ data ): void
@@ -373,30 +310,5 @@ protected function assertLocation(Location $location, array $data): void
373310 } catch (PropertyNotFoundException ) {
374311 // Do nothing
375312 }
376-
377- self ::assertSame (
378- [
379- 'id ' => $ location ->id ,
380- 'status ' => $ location ->status ,
381- 'priority ' => $ location ->priority ,
382- 'hidden ' => $ location ->hidden ,
383- 'invisible ' => $ location ->invisible ,
384- 'explicitlyHidden ' => $ location ->explicitlyHidden ,
385- 'isVisible ' => $ location ->isVisible ,
386- 'remoteId ' => $ location ->remoteId ,
387- 'parentLocationId ' => $ location ->parentLocationId ,
388- 'pathString ' => $ location ->pathString ,
389- 'path ' => $ location ->path ,
390- 'depth ' => $ location ->depth ,
391- 'sortField ' => $ location ->sortField ,
392- 'sortOrder ' => $ location ->sortOrder ,
393- 'contentId ' => $ location ->contentId ,
394- 'innerLocation ' => '[An instance of Ibexa\Contracts\Core\Repository\Values\Content\Location] ' ,
395- 'contentInfo ' => $ location ->contentInfo ,
396- 'parent ' => '[An instance of Netgen\IbexaSiteApi\API\Values\Location] ' ,
397- 'content ' => '[An instance of Netgen\IbexaSiteApi\API\Values\Content] ' ,
398- ],
399- $ location ->__debugInfo (),
400- );
401313 }
402314}
0 commit comments