Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function testLocalizedDescription(): void |
||
15 | { |
||
16 | $type = new PhpEnumType(TestEnum::class); |
||
17 | self::assertSame('custom description for key 1', $type->getValues()[0]->description); |
||
18 | self::assertSame('other for key 2', $type->getValues()[1]->description); |
||
19 | |||
20 | $normalType = new PhpEnumType(OtherTestEnum::class); |
||
21 | self::assertSame('static description via webonyx/graphql', $normalType->getValues()[0]->description, 'base features are still working'); |
||
22 | } |
||
24 |