| @@ 368-375 (lines=8) @@ | ||
| 365 | /** |
|
| 366 | * @dataProvider provideDataForGetName |
|
| 367 | */ |
|
| 368 | public function testGetName(SPIValue $value, array $fieldSettings = [], string $languageCode = 'en_GB', $expected) |
|
| 369 | { |
|
| 370 | $this->expectException(\RuntimeException::class); |
|
| 371 | ||
| 372 | $fieldSettingsMock = $this->getFieldDefinitionMock($fieldSettings); |
|
| 373 | ||
| 374 | $this->getFieldTypeUnderTest()->getName($value, $fieldSettingsMock, $languageCode); |
|
| 375 | } |
|
| 376 | ||
| 377 | public function provideDataForGetName(): array |
|
| 378 | { |
|
| @@ 526-534 (lines=9) @@ | ||
| 523 | /** |
|
| 524 | * @dataProvider provideDataForGetName |
|
| 525 | */ |
|
| 526 | public function testGetName(SPIValue $value, array $fieldSettings = [], string $languageCode = 'en_GB', string $expected) |
|
| 527 | { |
|
| 528 | $fieldDefinitionMock = $this->getFieldDefinitionMock($fieldSettings); |
|
| 529 | ||
| 530 | self::assertSame( |
|
| 531 | $expected, |
|
| 532 | $this->getFieldTypeUnderTest()->getName($value, $fieldDefinitionMock, $languageCode) |
|
| 533 | ); |
|
| 534 | } |
|
| 535 | ||
| 536 | public function testValidatorConfigurationSchema() |
|
| 537 | { |
|