@@ -26,7 +26,7 @@ public function it_create_a_new_config_parameter(): void
26
26
{
27
27
$ factory = new ConfigFactory ();
28
28
$ configItem = $ factory ->setName (Str::random (5 ))
29
- ->setType (' boolean ' )
29
+ ->setType (ConfigDataType:: BOOLEAN )
30
30
->setValue ('1 ' )
31
31
->setDescription (Str::random (50 ))
32
32
->get ();
@@ -46,7 +46,7 @@ public function it_create_a_new_config_parameter_with_tag(): void
46
46
{
47
47
$ factory = new ConfigFactory ();
48
48
$ configItem = $ factory ->setName (Str::random (5 ))
49
- ->setType (' boolean ' )
49
+ ->setType (ConfigDataType:: BOOLEAN )
50
50
->setValue ('1 ' )
51
51
->setTags (['system ' ])
52
52
->setDescription (Str::random (50 ))
@@ -72,7 +72,7 @@ public function it_does_not_create_a_config_parameter_with_the_same_name(): void
72
72
73
73
$ factory = new ConfigFactory ();
74
74
$ configItem = $ factory ->setName ($ config ->name )
75
- ->setType (' boolean ' )
75
+ ->setType (ConfigDataType:: BOOLEAN )
76
76
->setValue ('1 ' )
77
77
->setDescription (Str::random (50 ))
78
78
->get ();
@@ -89,7 +89,7 @@ public function it_updates_existing_config_parameter(): void
89
89
$ this ->assertDatabaseHas (config ('laravel-config.table ' ), ['name ' => $ config ->name , 'val ' => $ config ->val ]);
90
90
91
91
$ factory = new ConfigFactory ($ config );
92
- $ configItem = $ factory ->setType (' boolean ' )
92
+ $ configItem = $ factory ->setType (ConfigDataType:: BOOLEAN )
93
93
->setValue ('0 ' )
94
94
->setDescription ('updated-description ' )
95
95
->get ();
0 commit comments