File tree Expand file tree Collapse file tree 2 files changed +3
-31
lines changed Expand file tree Collapse file tree 2 files changed +3
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
use CodeIgniter \Test \CIUnitTestCase ;
15
15
use ReflectionClass ;
16
16
use stdClass ;
17
- use Tests \Support \Config \Factory ;
18
17
use Tests \Support \Models \UserModel ;
19
18
use Tests \Support \Widgets \OtherWidget ;
20
19
use Tests \Support \Widgets \SomeWidget ;
@@ -76,8 +75,9 @@ public function testSetsOptions()
76
75
public function testUsesConfigOptions ()
77
76
{
78
77
// Simulate having a $widgets property in App\Config\Factory
79
- $ config = new Factory ();
80
- $ config ->widgets = ['bar ' => 'bam ' ];
78
+ $ config = new class () extends Factory {
79
+ public $ widgets = ['bar ' => 'bam ' ];
80
+ };
81
81
Factories::injectMock ('config ' , Factory::class, $ config );
82
82
83
83
$ result = Factories::getOptions ('widgets ' );
You can’t perform that action at this time.
0 commit comments