Skip to content

Commit

Permalink
Merge branch '3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jul 13, 2020
2 parents 538d137 + fcd6059 commit f921160
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Guesser/AbstractTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function getParentMetadataForProperty($baseClass, $propertyFullName, M
return $modelManager->getParentMetadataForProperty($baseClass, $propertyFullName);
} catch (MappingException $e) {
// no metadata not found.
return;
return null;
}
}
}
4 changes: 2 additions & 2 deletions tests/Admin/FieldDescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ public function testIsIdentifierFromFieldMapping(): void
$fieldMapping = [
'type' => 'integer',
'fieldName' => 'position',
'id' => 'someId',
'id' => true,
];

$field = new FieldDescription();
$field->setFieldMapping($fieldMapping);

$this->assertSame('someId', $field->isIdentifier());
$this->assertTrue($field->isIdentifier());
}

public function testGetFieldMapping(): void
Expand Down
6 changes: 0 additions & 6 deletions tests/Builder/ShowBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public function testGetBaseList(): void
$this->assertInstanceOf(FieldDescriptionCollection::class, $this->showBuilder->getBaseList());
}

/**
* @doesNotPerformAssertions
*/
public function testAddFieldNoType(): void
{
$typeGuess = $this->prophesize(TypeGuess::class);
Expand All @@ -90,9 +87,6 @@ public function testAddFieldNoType(): void
);
}

/**
* @doesNotPerformAssertions
*/
public function testAddFieldWithType(): void
{
$fieldDescription = new FieldDescription();
Expand Down

0 comments on commit f921160

Please sign in to comment.