@@ -142,19 +142,18 @@ public function testGetFirstFieldDefinitionOfType(): void
142142 }
143143
144144 /**
145- * @dataProvider getIsContainerDataProvider
145+ * @dataProvider provideForDeprecatedPropertyAccessMatchesMethodCallResult
146146 */
147- public function testIsContentTypeDraftAContainer (bool $ isContainer ): void
147+ public function testDeprecatedPropertyAccessMatchesMethodCallResult (bool $ isContainer ): void
148148 {
149149 $ contentTypeDraft = new ContentTypeDraft ([
150150 'innerContentType ' => new ContentType ([
151151 'isContainer ' => $ isContainer ,
152152 ]),
153153 ]);
154154
155- /** @phpstan-ignore-next-line
156- * it is here on purpose - this is a violation since we directly access a protected property.
157- * The aim however, is to show that both methods return the same value (even though the former is deprecated)
155+ /** @phpstan-ignore-next-line property.protected
156+ * intentionally violating deprecated property access.
158157 */
159158 self ::assertSame ($ isContainer , $ contentTypeDraft ->isContainer );
160159 self ::assertSame ($ isContainer , $ contentTypeDraft ->isContainer ());
@@ -163,7 +162,7 @@ public function testIsContentTypeDraftAContainer(bool $isContainer): void
163162 /**
164163 * @return iterable<string, array{0: bool}>
165164 */
166- public function getIsContainerDataProvider (): iterable
165+ public function provideForDeprecatedPropertyAccessMatchesMethodCallResult (): iterable
167166 {
168167 yield 'content type draft is a container ' => [true ];
169168 yield 'content type draft is not a container ' => [false ];
0 commit comments