File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Spatie \Activitylog \Test ;
4
4
5
+ use Illuminate \Support \Str ;
5
6
use Spatie \Activitylog \Test \Enum \NonBackedEnum ;
6
7
use Spatie \Activitylog \Test \Models \Activity ;
7
8
use Spatie \Activitylog \Test \Models \User ;
20
21
expect ($ latestActivity ->description )->toEqual ($ description )
21
22
->and ($ latestActivity ->properties ['role ' ])->toEqual ('User ' );
22
23
})
23
- ->skip (! function_exists ( ' enum_exists ' ), "PHP doesn't support enum " );
24
+ ->skip (! Str:: of ( PHP_VERSION )-> startsWith ( ' 8.1 ' ), "PHP doesn't support enum " );
24
25
25
26
it ('can store non-backed enum with properties ' , function () {
26
27
$ description = 'ROLE LOG ' ;
34
35
expect ($ latestActivity ->description )->toEqual ($ description )
35
36
->and ($ latestActivity ->properties ['role ' ])->toEqual ('User ' );
36
37
})
37
- ->skip (! function_exists ('enum_exists ' ), "PHP doesn't support enum " );
38
+ ->skip (! Str::of (PHP_VERSION )->startsWith ('8.1 ' ), "PHP doesn't support enum " );
39
+
You can’t perform that action at this time.
0 commit comments