File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
app/code/Magento/Store/Test/Unit Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \DB \Adapter \TableNotFoundException ;
12
12
use Magento \Framework \DB \Select ;
13
13
use Magento \Store \App \Config \Source \RuntimeConfigSource ;
14
+ use PHPUnit \Framework \TestCase ;
15
+ use PHPUnit \Framework \MockObject \MockObject ;
14
16
15
17
/**
16
18
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
17
19
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
20
*/
19
- class RuntimeConfigSourceTest extends \ PHPUnit \ Framework \ TestCase
21
+ class RuntimeConfigSourceTest extends TestCase
20
22
{
21
23
/**
22
- * @var DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject
24
+ * @var DeploymentConfig|MockObject
23
25
*/
24
26
private $ deploymentConfig ;
25
27
@@ -29,12 +31,12 @@ class RuntimeConfigSourceTest extends \PHPUnit\Framework\TestCase
29
31
private $ configSource ;
30
32
31
33
/**
32
- * @var \PHPUnit_Framework_MockObject_MockObject
34
+ * @var MockObject
33
35
*/
34
36
private $ connection ;
35
37
36
38
/**
37
- * @var \PHPUnit_Framework_MockObject_MockObject
39
+ * @var MockObject
38
40
*/
39
41
private $ resourceConnection ;
40
42
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
12
12
use Magento \Store \Model \ResourceModel \Store ;
13
13
use Magento \Framework \DB \Adapter \AdapterInterface ;
14
+ use PHPUnit \Framework \MockObject \MockObject ;
15
+ use PHPUnit \Framework \TestCase ;
14
16
15
- class StoreTest extends \ PHPUnit \ Framework \ TestCase
17
+ class StoreTest extends TestCase
16
18
{
17
19
/** @var Store */
18
20
protected $ model ;
19
21
20
22
/**
21
- * @var ResourceConnection|\PHPUnit_Framework_MockObject_MockObject
23
+ * @var ResourceConnection|MockObject
22
24
*/
23
25
protected $ resourceMock ;
24
26
25
- /** @var Select | \PHPUnit_Framework_MockObject_MockObject */
27
+ /** @var Select | MockObject */
26
28
protected $ select ;
27
29
28
30
/**
29
- * @var AdapterInterface|\PHPUnit_Framework_MockObject_MockObject
31
+ * @var AdapterInterface|MockObject
30
32
*/
31
33
protected $ connectionMock ;
32
34
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \DB \Select ;
11
11
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
12
12
use Magento \Store \Model \ResourceModel \Website ;
13
+ use PHPUnit \Framework \TestCase ;
14
+ use PHPUnit \Framework \MockObject \MockObject ;
13
15
14
- class WebsiteTest extends \ PHPUnit \ Framework \ TestCase
16
+ class WebsiteTest extends TestCase
15
17
{
16
18
/** @var Website */
17
19
protected $ model ;
18
20
19
21
/**
20
- * @var \Magento\Framework\App\ResourceConnection|\PHPUnit_Framework_MockObject_MockObject
22
+ * @var \Magento\Framework\App\ResourceConnection|MockObject
21
23
*/
22
24
protected $ resourceMock ;
23
25
24
- /** @var Select | \PHPUnit_Framework_MockObject_MockObject */
26
+ /** @var Select | MockObject */
25
27
protected $ select ;
26
28
27
29
/**
28
- * @var \Magento\Framework\DB\Adapter\AdapterInterface|\PHPUnit_Framework_MockObject_MockObject
30
+ * @var \Magento\Framework\DB\Adapter\AdapterInterface|MockObject
29
31
*/
30
32
protected $ connectionMock ;
31
33
You can’t perform that action at this time.
0 commit comments