How to perform tests with backed enums
- $casts is set```phpprotected $casts = [ 'name' => EnumsRole::class,];```
- The enum, in this case, does not implement hasLabel.```phpenum Role: string{ case FOO = 'foo';case BAR= 'bar';}```
- The test```phplivewire(ListRoles::class) ->assertTableColumnFormattedStateSet('name', $record->name, record: $record); // Object of class App\Enums\Role could not be converted to string
->assertTableColumnFormattedStateSet('name', $record->name->value, record: $record); // Failed asserting that a table column with name [name] has a formatted state of [foo] for recordto string
```
- if I use assertTableColumnStateSet, the errors are exactly the same.