@@ -16,12 +16,14 @@ protected function getPackageProviders($app)
16
16
return [FeatureToggleClientProvider::class];
17
17
}
18
18
19
+
19
20
/**
20
21
* Test that the control treatment is returned for a non-existant flag.
21
22
* @test
22
23
* @return void
23
24
*/
24
25
public function it_renders_the_control_treatment () {
26
+ config ()->set ('feature-toggle.splitio.factory.log.adapter ' , 'void ' );
25
27
$ toggleClient = app (FeatureToggleClient::class);
26
28
$ toggleClient->
setKey (
"[email protected] " );
27
29
$ this ->assertEquals ("control " , $ toggleClient ->getTreatment ("AintNoSuchFlag " ));
@@ -44,6 +46,7 @@ public function it_renders_the_control_treatment_without_key() {
44
46
* @return void
45
47
*/
46
48
public function it_renders_an_off_treatment () {
49
+ config ()->set ('feature-toggle.splitio.factory.log.adapter ' , 'void ' );
47
50
$ toggleClient = app (FeatureToggleClient::class);
48
51
$ toggleClient->
setKey (
"[email protected] " );
49
52
$ this ->assertEquals ("off " , $ toggleClient ->getTreatment ("FancyFeatureFlag " ));
@@ -55,6 +58,7 @@ public function it_renders_an_off_treatment() {
55
58
* @return void
56
59
*/
57
60
public function it_renders_an_on_treatment_for_user () {
61
+ config ()->set ('feature-toggle.splitio.factory.log.adapter ' , 'void ' );
58
62
$ toggleClient = app (FeatureToggleClient::class);
59
63
$ toggleClient->
setKey (
"[email protected] " );
60
64
$ this ->assertEquals ("on " , $ toggleClient ->getTreatment ("FancierFeatureFlag " ));
0 commit comments