File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Framework \App \Test \Unit ;
8
8
9
- use \Magento \Framework \App \DeploymentConfig ;
10
- use \Magento \Framework \Config \ConfigOptionsListConstants ;
9
+ use Magento \Framework \App \DeploymentConfig ;
10
+ use Magento \Framework \Config \ConfigOptionsListConstants ;
11
+ use PHPUnit \Framework \MockObject \MockObject ;
12
+ use PHPUnit \Framework \TestCase ;
11
13
12
- class DeploymentConfigTest extends \ PHPUnit \ Framework \ TestCase
14
+ class DeploymentConfigTest extends TestCase
13
15
{
14
16
/**
15
17
* @var array
@@ -63,7 +65,7 @@ class DeploymentConfigTest extends \PHPUnit\Framework\TestCase
63
65
protected $ _deploymentConfigMerged ;
64
66
65
67
/**
66
- * @var \PHPUnit_Framework_MockObject_MockObject
68
+ * @var MockObject
67
69
*/
68
70
private $ reader ;
69
71
@@ -124,7 +126,7 @@ public function testNotAvailable(): void
124
126
*/
125
127
public function testNotAvailableThenAvailable (): void
126
128
{
127
- $ this ->reader ->expects ($ this ->once ())->method ('load ' )->willReturn ([]);
129
+ $ this ->reader ->expects ($ this ->once ())->method ('load ' )->willReturn ([' Test ' ]);
128
130
$ object = new DeploymentConfig ($ this ->reader );
129
131
$ this ->assertFalse ($ object ->isAvailable ());
130
132
$ this ->assertFalse ($ object ->isAvailable ());
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Module \Test \Unit ;
7
7
8
- use \Magento \Framework \Module \ModuleList ;
8
+ use Magento \Framework \Module \ModuleList ;
9
+ use PHPUnit \Framework \MockObject \MockObject ;
10
+ use PHPUnit \Framework \TestCase ;
9
11
10
- class ModuleListTest extends \PHPUnit \Framework \TestCase
12
+ /**
13
+ * Test for module list
14
+ */
15
+ class ModuleListTest extends TestCase
11
16
{
12
17
/**
13
18
* Fixture for all modules' meta-information
@@ -24,12 +29,12 @@ class ModuleListTest extends \PHPUnit\Framework\TestCase
24
29
private static $ enabledFixture = ['foo ' => 1 , 'bar ' => 0 ];
25
30
26
31
/**
27
- * @var \PHPUnit_Framework_MockObject_MockObject
32
+ * @var MockObject
28
33
*/
29
34
private $ config ;
30
35
31
36
/**
32
- * @var \PHPUnit_Framework_MockObject_MockObject
37
+ * @var MockObject
33
38
*/
34
39
private $ loader ;
35
40
You can’t perform that action at this time.
0 commit comments