@@ -537,12 +537,12 @@ public function getting_a_list_of_resources_filtered_by_model_datetime_field():
537537 /** @test */
538538 public function getting_a_list_of_resources_filtered_by_jsonb_array_field_inclusive (): void
539539 {
540- if (config ( ' database.default ' ) === ' sqlite ' ) {
540+ if ($ this -> noSupportForJsonDbOperations ()) {
541541 $ this ->markTestSkipped ('Not supported with SQLite ' );
542542 }
543543
544544 $ matchingPost = factory (Post::class)
545- ->create (['options ' => ['a ' , 'b ' , 'c ' ]])->fresh ();
545+ ->create (['options ' => ['a ' , 'b ' , 'c ' ]])->fresh ();
546546 factory (Post::class)->create (['publish_at ' => Carbon::now ()])->fresh ();
547547
548548 Gate::policy (Post::class, GreenPolicy::class);
@@ -565,7 +565,7 @@ public function getting_a_list_of_resources_filtered_by_jsonb_array_field_inclus
565565 /** @test */
566566 public function getting_a_list_of_resources_filtered_by_nested_jsonb_array_field_inclusive (): void
567567 {
568- if (config ( ' database.default ' ) === ' sqlite ' ) {
568+ if ($ this -> noSupportForJsonDbOperations ()) {
569569 $ this ->markTestSkipped ('Not supported with SQLite ' );
570570 }
571571
@@ -593,12 +593,12 @@ public function getting_a_list_of_resources_filtered_by_nested_jsonb_array_field
593593 /** @test */
594594 public function getting_a_list_of_resources_filtered_by_jsonb_array_field_exclusive (): void
595595 {
596- if (config ( ' database.default ' ) === ' sqlite ' ) {
596+ if ($ this -> noSupportForJsonDbOperations ()) {
597597 $ this ->markTestSkipped ('Not supported with SQLite ' );
598598 }
599599
600600 $ matchingPost = factory (Post::class)
601- ->create (['options ' => ['a ' , 'd ' ]])->fresh ();
601+ ->create (['options ' => ['a ' , 'd ' ]])->fresh ();
602602 factory (Post::class)->create (['publish_at ' => Carbon::now ()])->fresh ();
603603
604604 Gate::policy (Post::class, GreenPolicy::class);
@@ -621,7 +621,7 @@ public function getting_a_list_of_resources_filtered_by_jsonb_array_field_exclus
621621 /** @test */
622622 public function getting_a_list_of_resources_filtered_by_nested_jsonb_array_field_exclusive (): void
623623 {
624- if (config ( ' database.default ' ) === ' sqlite ' ) {
624+ if ($ this -> noSupportForJsonDbOperations ()) {
625625 $ this ->markTestSkipped ('Not supported with SQLite ' );
626626 }
627627
0 commit comments