File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ public function testThatSetterReturnsInstanceOfEntity(
179179 string $ type ,
180180 FieldMapping |AssociationMapping $ meta ,
181181 ): void {
182- //if (!(isset($meta->fieldName) && $meta->columnDefinition === null)) {
183182 if (method_exists ($ meta , 'isManyToManyOwningSide ' )
184183 && (
185184 $ meta ->isManyToManyOwningSide ()
@@ -257,28 +256,6 @@ public function testThatGetterReturnsExpectedValue(
257256 );
258257 }
259258
260- /*
261- //if (array_key_exists('columnName', $meta) || array_key_exists('joinColumns', $meta)) {
262- if (isset($meta->fieldName) && $meta->columnDefinition === null) {
263- $value = PhpUnitUtil::getValidValueForType($type, $meta);
264- $entity->{$setter}($value);
265- self::assertSame(
266- $value,
267- $callable(),
268- sprintf(
269- 'Getter method of %s:%s did not return expected value type (%s) and it returned (%s)',
270- static::$entityName,
271- $getter,
272- gettype($value),
273- gettype($callable()),
274- ),
275- );
276- } else {
277- $type = ArrayCollection::class;
278- self::assertInstanceOf($type, $callable());
279- }
280- */
281-
282259 try {
283260 $ method = 'assertIs ' . ucfirst ($ type );
284261
Original file line number Diff line number Diff line change @@ -270,7 +270,6 @@ private static function getValidValue(
270270
271271 if (substr_count ($ type , '\\' ) > 1 && !str_contains ($ type , '| ' )) {
272272 /** @var class-string $class */
273- //$class = $meta !== [] && array_key_exists('targetEntity', $meta) ? $meta['targetEntity'] : $type;
274273 $ class = $ meta ->targetEntity ?? $ type ;
275274
276275 $ type = self ::TYPE_CUSTOM_CLASS ;
You can’t perform that action at this time.
0 commit comments