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 1111use Magento \Framework \DB \Adapter \TableNotFoundException ;
1212use Magento \Framework \DB \Select ;
1313use Magento \Store \App \Config \Source \RuntimeConfigSource ;
14+ use PHPUnit \Framework \TestCase ;
15+ use PHPUnit \Framework \MockObject \MockObject ;
1416
1517/**
1618 * @SuppressWarnings(PHPMD.ExcessiveParameterList)
1719 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1820 */
19- class RuntimeConfigSourceTest extends \ PHPUnit \ Framework \ TestCase
21+ class RuntimeConfigSourceTest extends TestCase
2022{
2123 /**
22- * @var DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject
24+ * @var DeploymentConfig|MockObject
2325 */
2426 private $ deploymentConfig ;
2527
@@ -29,12 +31,12 @@ class RuntimeConfigSourceTest extends \PHPUnit\Framework\TestCase
2931 private $ configSource ;
3032
3133 /**
32- * @var \PHPUnit_Framework_MockObject_MockObject
34+ * @var MockObject
3335 */
3436 private $ connection ;
3537
3638 /**
37- * @var \PHPUnit_Framework_MockObject_MockObject
39+ * @var MockObject
3840 */
3941 private $ resourceConnection ;
4042
Original file line number Diff line number Diff line change 1111use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
1212use Magento \Store \Model \ResourceModel \Store ;
1313use Magento \Framework \DB \Adapter \AdapterInterface ;
14+ use PHPUnit \Framework \MockObject \MockObject ;
15+ use PHPUnit \Framework \TestCase ;
1416
15- class StoreTest extends \ PHPUnit \ Framework \ TestCase
17+ class StoreTest extends TestCase
1618{
1719 /** @var Store */
1820 protected $ model ;
1921
2022 /**
21- * @var ResourceConnection|\PHPUnit_Framework_MockObject_MockObject
23+ * @var ResourceConnection|MockObject
2224 */
2325 protected $ resourceMock ;
2426
25- /** @var Select | \PHPUnit_Framework_MockObject_MockObject */
27+ /** @var Select | MockObject */
2628 protected $ select ;
2729
2830 /**
29- * @var AdapterInterface|\PHPUnit_Framework_MockObject_MockObject
31+ * @var AdapterInterface|MockObject
3032 */
3133 protected $ connectionMock ;
3234
Original file line number Diff line number Diff line change 1010use Magento \Framework \DB \Select ;
1111use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
1212use Magento \Store \Model \ResourceModel \Website ;
13+ use PHPUnit \Framework \TestCase ;
14+ use PHPUnit \Framework \MockObject \MockObject ;
1315
14- class WebsiteTest extends \ PHPUnit \ Framework \ TestCase
16+ class WebsiteTest extends TestCase
1517{
1618 /** @var Website */
1719 protected $ model ;
1820
1921 /**
20- * @var \Magento\Framework\App\ResourceConnection|\PHPUnit_Framework_MockObject_MockObject
22+ * @var \Magento\Framework\App\ResourceConnection|MockObject
2123 */
2224 protected $ resourceMock ;
2325
24- /** @var Select | \PHPUnit_Framework_MockObject_MockObject */
26+ /** @var Select | MockObject */
2527 protected $ select ;
2628
2729 /**
28- * @var \Magento\Framework\DB\Adapter\AdapterInterface|\PHPUnit_Framework_MockObject_MockObject
30+ * @var \Magento\Framework\DB\Adapter\AdapterInterface|MockObject
2931 */
3032 protected $ connectionMock ;
3133
You can’t perform that action at this time.
0 commit comments