Skip to content

Commit e9da59b

Browse files
author
Igor Melnikov
committed
MAGETWO-65521: Remove unserialize in \Magento\Framework\DB\Adapter\Pdo\Mysql
- fixing namespace
1 parent 455c30d commit e9da59b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lib/internal/Magento/Framework/DB/Test/Unit/Adapter/Pdo/MysqlFactoryTest.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ protected function setUp()
5454
* @dataProvider createDataProvider
5555
*/
5656
public function testCreate(
57+
array $objectManagerArguments,
5758
array $config,
5859
LoggerInterface $logger = null,
59-
SelectFactory $selectFactory = null,
60-
array $arguments
60+
SelectFactory $selectFactory = null
6161
) {
6262
$this->objectManagerMock->expects($this->once())
6363
->method('create')
6464
->with(
6565
Mysql::class,
66-
$arguments
66+
$objectManagerArguments
6767
);
6868
$this->mysqlFactory->create(
6969
Mysql::class,
@@ -82,32 +82,32 @@ public function createDataProvider()
8282
$this->selectFactoryMock = $this->getMock(SelectFactory::class, [], [], '', false);
8383
return [
8484
[
85-
['foo' => 'bar'],
86-
$this->loggerMock,
87-
$this->selectFactoryMock,
8885
[
8986
'config' => ['foo' => 'bar'],
9087
'logger' => $this->loggerMock,
9188
'selectFactory' => $this->selectFactoryMock
92-
]
93-
],
94-
[
89+
],
9590
['foo' => 'bar'],
9691
$this->loggerMock,
97-
null,
92+
$this->selectFactoryMock
93+
],
94+
[
9895
[
9996
'config' => ['foo' => 'bar'],
10097
'logger' => $this->loggerMock
101-
]
98+
],
99+
['foo' => 'bar'],
100+
$this->loggerMock,
101+
null
102102
],
103103
[
104-
['foo' => 'bar'],
105-
null,
106-
$this->selectFactoryMock,
107104
[
108105
'config' => ['foo' => 'bar'],
109106
'selectFactory' => $this->selectFactoryMock
110-
]
107+
],
108+
['foo' => 'bar'],
109+
null,
110+
$this->selectFactoryMock
111111
],
112112
];
113113
}

0 commit comments

Comments
 (0)