public function FieldStorageConfigEntityUnitTest::providerInvalidEnforcedCardinality in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest::providerInvalidEnforcedCardinality()
- 9 core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest::providerInvalidEnforcedCardinality()
Data provider for ::testInvalidEnforcedCardinality()
Return value
array Test cases.
File
- core/
modules/ field/ tests/ src/ Unit/ FieldStorageConfigEntityUnitTest.php, line 206 - Contains \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest.
Class
- FieldStorageConfigEntityUnitTest
- @coversDefaultClass \Drupal\field\Entity\FieldStorageConfig
Namespace
Drupal\Tests\field\UnitCode
public function providerInvalidEnforcedCardinality() {
return [
'zero' => [
0,
],
'negative_other_than_-1' => [
-70,
],
'non_numeric' => [
'abc%$#@!',
],
];
}