File tree 3 files changed +3
-3
lines changed
test_app/TestApp/Model/Enum
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2024,7 +2024,7 @@ public function testEnumNonBacked(): void
2024
2024
$ this ->expectException (InvalidArgumentException::class);
2025
2025
$ this ->expectExceptionMessage ('The `$enumClassName` argument must be the classname of a valid backed enum. ' );
2026
2026
2027
- Validation::enum (NonBacked::Basic , NonBacked::class);
2027
+ Validation::enum (NonBacked::BASIC , NonBacked::class);
2028
2028
}
2029
2029
2030
2030
public function testEnumNonEnum (): void
Original file line number Diff line number Diff line change @@ -2720,7 +2720,7 @@ public function testEnum(): void
2720
2720
$ this ->assertNotEmpty ($ validator ->validate (['status ' => Priority::LOW ]));
2721
2721
$ this ->assertNotEmpty ($ validator ->validate (['status ' => 'wrong type ' ]));
2722
2722
$ this ->assertNotEmpty ($ validator ->validate (['status ' => 123 ]));
2723
- $ this ->assertNotEmpty ($ validator ->validate (['status ' => NonBacked::Basic ]));
2723
+ $ this ->assertNotEmpty ($ validator ->validate (['status ' => NonBacked::BASIC ]));
2724
2724
2725
2725
$ fieldName = 'status ' ;
2726
2726
$ rule = 'enum ' ;
Original file line number Diff line number Diff line change 16
16
17
17
enum NonBacked
18
18
{
19
- case Basic ;
19
+ case BASIC ;
20
20
}
You can’t perform that action at this time.
0 commit comments