Skip to content

Commit 0d912e6

Browse files
Stanislav IdolovMastiuhin Oleksandr
Stanislav Idolov
authored and
Mastiuhin Oleksandr
committed
(cherry picked from commit 02a09d6)
1 parent 5d6600e commit 0d912e6

File tree

41 files changed

+94
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+94
-48
lines changed

app/code/Magento/Ui/Test/Unit/Model/ResourceModel/BookmarkRepositoryTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public function testSaveWithException()
9494
->method('save')
9595
->with($this->bookmarkMock)
9696
->willThrowException(new \Exception($exceptionMessage));
97-
$this->expectException(\Magento\Framework\Exception\CouldNotSaveException::class, __($exceptionMessage));
97+
$this->expectException(\Magento\Framework\Exception\CouldNotSaveException::class);
98+
$this->expectExceptionMessage($exceptionMessage);
9899
$this->bookmarkRepository->save($this->bookmarkMock);
99100
}
100101

@@ -143,7 +144,8 @@ public function testDeleteWithException()
143144
->method('delete')
144145
->with($this->bookmarkMock)
145146
->willThrowException(new \Exception($exceptionMessage));
146-
$this->expectException(\Magento\Framework\Exception\CouldNotDeleteException::class, __($exceptionMessage));
147+
$this->expectException(\Magento\Framework\Exception\CouldNotDeleteException::class);
148+
$this->expectExceptionMessage($exceptionMessage);
147149
$this->assertTrue($this->bookmarkRepository->delete($this->bookmarkMock));
148150
}
149151

app/code/Magento/Wishlist/Test/Unit/Model/ItemTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ public function testSetAndSaveItemOptions()
299299

300300
public function testGetProductWithException()
301301
{
302-
$this->expectException(\Magento\Framework\Exception\LocalizedException::class, __('Cannot specify product.'));
302+
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
303+
$this->expectExceptionMessage('Cannot specify product.');
303304
$this->model->getProduct();
304305
}
305306

lib/internal/Magento/Framework/App/Test/Unit/Cache/Tag/ResolverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ protected function setUp()
4040

4141
public function testGetTagsForNotObject()
4242
{
43-
$this->expectException(\InvalidArgumentException::class, 'Provided argument is not an object');
43+
$this->expectException(\InvalidArgumentException::class);
44+
$this->expectExceptionMessage('Provided argument is not an object');
4445
$this->model->getTags('some scalar');
4546
}
4647

lib/internal/Magento/Framework/App/Test/Unit/Cache/Tag/Strategy/DummyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ protected function setUp()
2020

2121
public function testGetTagsWithScalar()
2222
{
23-
$this->expectException(\InvalidArgumentException::class, 'Provided argument is not an object');
23+
$this->expectException(\InvalidArgumentException::class);
24+
$this->expectExceptionMessage('Provided argument is not an object');
2425
$this->model->getTags('scalar');
2526
}
2627

lib/internal/Magento/Framework/App/Test/Unit/Cache/Tag/Strategy/FactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected function setUp()
4949

5050
public function testGetStrategyWithScalar()
5151
{
52-
$this->expectException(\InvalidArgumentException::class, 'Provided argument is not an object');
52+
$this->expectException(\InvalidArgumentException::class);
53+
$this->expectExceptionMessage('Provided argument is not an object');
5354
$this->model->getStrategy('some scalar');
5455
}
5556

lib/internal/Magento/Framework/App/Test/Unit/Cache/Tag/Strategy/IdentifierTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ protected function setUp()
2222

2323
public function testGetWithScalar()
2424
{
25-
$this->expectException(\InvalidArgumentException::class, 'Provided argument is not an object');
25+
$this->expectException(\InvalidArgumentException::class);
26+
$this->expectExceptionMessage('Provided argument is not an object');
2627
$this->model->getTags('scalar');
2728
}
2829

lib/internal/Magento/Framework/App/Test/Unit/ErrorHandlerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public function testHandlerException($errorNo, $errorPhrase)
5454
$errorLine = 'test_error_line';
5555

5656
$exceptedExceptionMessage = sprintf('%s: %s in %s on line %s', $errorPhrase, $errorStr, $errorFile, $errorLine);
57-
$this->expectException('Exception', $exceptedExceptionMessage);
57+
$this->expectException('Exception');
58+
$this->expectExceptionMessage($exceptedExceptionMessage);
5859

5960
$this->object->handler($errorNo, $errorStr, $errorFile, $errorLine);
6061
}

lib/internal/Magento/Framework/App/Test/Unit/SetupInfoTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class SetupInfoTest extends \PHPUnit\Framework\TestCase
2424
*/
2525
public function testConstructorExceptions($server, $expectedError)
2626
{
27-
$this->expectException('\InvalidArgumentException', $expectedError);
27+
$this->expectException('\InvalidArgumentException');
28+
$this->expectExceptionMessage($expectedError);
2829
new SetupInfo($server);
2930
}
3031

lib/internal/Magento/Framework/App/Test/Unit/ShellTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public function testExecuteFailure()
6969
);
7070
$this->driverMock->expects($this->once())->method('execute')->willReturn($response);
7171
$this->loggerMock->expects($this->once())->method('error')->with($logEntry);
72-
$this->expectException(LocalizedException::class, "Command returned non-zero exit code:\n`$command`");
72+
$this->expectException(LocalizedException::class);
73+
$this->expectExceptionMessage("Command returned non-zero exit code:\n`$command`");
7374
$this->model->execute($command, []);
7475
}
7576
}

lib/internal/Magento/Framework/App/Test/Unit/View/Asset/MaterializationStrategy/FactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public function testCreateException()
8787

8888
$factory = new Factory($this->objectManager, []);
8989

90-
$this->expectException('LogicException', 'No materialization strategy is supported');
90+
$this->expectException('LogicException');
91+
$this->expectExceptionMessage('No materialization strategy is supported');
9192
$factory->create($asset);
9293
}
9394

lib/internal/Magento/Framework/Cache/Test/Unit/Frontend/Adapter/ZendTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public function proxyMethodDataProvider()
8080
*/
8181
public function testCleanException($cleaningMode, $expectedErrorMessage)
8282
{
83-
$this->expectException('InvalidArgumentException', $expectedErrorMessage);
83+
$this->expectException('InvalidArgumentException');
84+
$this->expectExceptionMessage($expectedErrorMessage);
8485
$object = new \Magento\Framework\Cache\Frontend\Adapter\Zend($this->createMock(\Zend_Cache_Core::class));
8586
$object->clean($cleaningMode);
8687
}

lib/internal/Magento/Framework/Code/Test/Unit/Generator/InterfaceGeneratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ protected function setUp()
7575
public function testGenerate($additionalMethodsData, $expectedException, $expectedExceptionMessage)
7676
{
7777
if ($expectedException) {
78-
$this->expectException($expectedException, $expectedExceptionMessage);
78+
$this->expectException($expectedException);
79+
$this->expectExceptionMessage($expectedExceptionMessage);
7980
}
8081
$methodsData = array_merge_recursive($this->methodsData, $additionalMethodsData);
8182
$this->interfaceGenerator->setClassDocBlock($this->interfaceDocBlock)

lib/internal/Magento/Framework/Code/Test/Unit/Generator/IoTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public function testWriteResultFileAlreadyExists($resultFileName, $fileExists, $
9797
} else {
9898
$exceptionMessage = 'Some error renaming file';
9999
$renameMockEvent = $this->throwException(new FileSystemException(new Phrase($exceptionMessage)));
100-
$this->expectException(\Magento\Framework\Exception\FileSystemException::class, $exceptionMessage);
100+
$this->expectException(\Magento\Framework\Exception\FileSystemException::class);
101+
$this->expectExceptionMessage($exceptionMessage);
101102
}
102103

103104
$this->_filesystemDriverMock->expects($this->once())

lib/internal/Magento/Framework/Code/Test/Unit/Validator/ArgumentSequenceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function testInvalidSequence()
5151
'Actual : %s' .
5252
PHP_EOL;
5353
$message = sprintf($message, '\ArgumentSequence\InvalidChildClass', $expectedSequence, $actualSequence);
54-
$this->expectException(\Magento\Framework\Exception\ValidatorException::class, $message);
54+
$this->expectException(\Magento\Framework\Exception\ValidatorException::class);
55+
$this->expectExceptionMessage($message);
5556
$this->_validator->validate('\ArgumentSequence\InvalidChildClass');
5657
}
5758
}

lib/internal/Magento/Framework/Code/Test/Unit/Validator/TypeDuplicationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function testInvalidClass()
4949
$this->_fixturePath .
5050
PHP_EOL .
5151
'Multiple type injection [\TypeDuplication\ArgumentBaseClass]';
52-
$this->expectException(\Magento\Framework\Exception\ValidatorException::class, $message);
52+
$this->expectException(\Magento\Framework\Exception\ValidatorException::class);
53+
$this->expectExceptionMessage($message);
5354
$this->_validator->validate('\TypeDuplication\InvalidClassWithDuplicatedTypes');
5455
}
5556
}

lib/internal/Magento/Framework/Config/Test/Unit/Data/ConfigDataTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public function testSetWrongKey($key, $expectedException)
4242

4343
$configData = new ConfigData('testKey');
4444

45-
$this->expectException('InvalidArgumentException', $expectedException);
45+
$this->expectException('InvalidArgumentException');
46+
$this->expectExceptionMessage($expectedException);
4647
$configData->set($key, 'value');
4748
}
4849

lib/internal/Magento/Framework/DB/Test/Unit/Tree/NodeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function testConstructorWithInvalidArgumentsThrowsException(
2121
$expectedException,
2222
$expectedExceptionMessage
2323
) {
24-
$this->expectException($expectedException, $expectedExceptionMessage);
24+
$this->expectException($expectedException);
25+
$this->expectExceptionMessage($expectedExceptionMessage);
2526
new \Magento\Framework\DB\Tree\Node($data['node_data'], $data['keys']);
2627
}
2728

lib/internal/Magento/Framework/Data/Test/Unit/Argument/Interpreter/CompositeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function testConstructWrongInterpreter()
5555
*/
5656
public function testEvaluateWrongDiscriminator($input, $expectedExceptionMessage)
5757
{
58-
$this->expectException('\InvalidArgumentException', $expectedExceptionMessage);
58+
$this->expectException('\InvalidArgumentException');
59+
$this->expectExceptionMessage($expectedExceptionMessage);
5960
$this->_model->evaluate($input);
6061
}
6162

lib/internal/Magento/Framework/Filesystem/Test/Unit/DirectoryListTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function testGetDefaultConfig()
2121
*/
2222
public function testValidate($config, $expectedError)
2323
{
24-
$this->expectException('\InvalidArgumentException', $expectedError);
24+
$this->expectException('\InvalidArgumentException');
25+
$this->expectExceptionMessage($expectedError);
2526
DirectoryList::validate($config);
2627
}
2728

lib/internal/Magento/Framework/Image/Test/Unit/Adapter/ImageMagickTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function setup()
5858
*/
5959
public function testWatermark($imagePath, $expectedMessage)
6060
{
61-
$this->expectException('LogicException', $expectedMessage);
61+
$this->expectException('LogicException');
62+
$this->expectExceptionMessage($expectedMessage);
6263
$this->imageMagic->watermark($imagePath);
6364
}
6465

lib/internal/Magento/Framework/Mview/Test/Unit/View/ChangelogTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public function testGetVersionWithExceptionNoTable()
125125
$this->mockIsTableExists($changelogTableName, false);
126126
$this->mockGetTableName();
127127

128-
$this->expectException('Exception', "Table {$changelogTableName} does not exist");
128+
$this->expectException('Exception');
129+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
129130
$this->model->setViewId('viewIdtest');
130131
$this->model->getVersion();
131132
}
@@ -136,7 +137,8 @@ public function testDrop()
136137
$this->mockIsTableExists($changelogTableName, false);
137138
$this->mockGetTableName();
138139

139-
$this->expectException('Exception', "Table {$changelogTableName} does not exist");
140+
$this->expectException('Exception');
141+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
140142
$this->model->setViewId('viewIdtest');
141143
$this->model->drop();
142144
}
@@ -227,7 +229,8 @@ public function testGetListWithException()
227229
$this->mockIsTableExists($changelogTableName, false);
228230
$this->mockGetTableName();
229231

230-
$this->expectException('Exception', "Table {$changelogTableName} does not exist");
232+
$this->expectException('Exception');
233+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
231234
$this->model->setViewId('viewIdtest');
232235
$this->model->getList(mt_rand(1, 200), mt_rand(201, 400));
233236
}
@@ -238,7 +241,8 @@ public function testClearWithException()
238241
$this->mockIsTableExists($changelogTableName, false);
239242
$this->mockGetTableName();
240243

241-
$this->expectException('Exception', "Table {$changelogTableName} does not exist");
244+
$this->expectException('Exception');
245+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
242246
$this->model->setViewId('viewIdtest');
243247
$this->model->clear(mt_rand(1, 200));
244248
}

lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/CompositeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public function testRenderException()
8585
->method('render')
8686
->willThrowException($exception);
8787

88-
$this->expectException('Exception', $message);
88+
$this->expectException('Exception');
89+
$this->expectExceptionMessage($message);
8990
$this->object->render(['text'], []);
9091
}
9192
}

lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/InlineTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function testRenderException()
8888
->method('get')
8989
->willThrowException($exception);
9090

91-
$this->expectException('Exception', $message);
91+
$this->expectException('Exception');
92+
$this->expectExceptionMessage($message);
9293
$this->renderer->render(['text'], []);
9394
}
9495
}

lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/TranslateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public function testRenderException()
9191
->method('getData')
9292
->willThrowException($exception);
9393

94-
$this->expectException('Exception', $message);
94+
$this->expectException('Exception');
95+
$this->expectExceptionMessage($message);
9596
$this->_renderer->render(['text'], []);
9697
}
9798
}

lib/internal/Magento/Framework/Test/Unit/Module/Plugin/DbStatusValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testBeforeDispatchOutOfDateWithErrors(array $errors, string $exp
114114
$this->cacheMock->expects(static::never())
115115
->method('save');
116116

117-
$this->expectException(LocalizedException::class, $expectedMessage);
117+
$this->expectException(LocalizedException::class);
118118
$this->expectExceptionMessage($expectedMessage);
119119
$this->plugin->beforeDispatch($this->frontControllerMock, $this->requestMock);
120120
}

lib/internal/Magento/Framework/Validator/Test/Unit/BuilderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ protected function _getExpectedConstraints($constraint, $optionKey, $optionValue
341341
*/
342342
public function testConstructorConfigValidation(array $options, $exception, $exceptionMessage)
343343
{
344-
$this->expectException($exception, $exceptionMessage);
344+
$this->expectException($exception);
345+
$this->expectExceptionMessage($exceptionMessage);
345346
if (array_key_exists('method', $options)) {
346347
$options = ['methods' => [$options]];
347348
}
@@ -362,7 +363,8 @@ public function testConstructorConfigValidation(array $options, $exception, $exc
362363
*/
363364
public function testAddConfigurationConfigValidation(array $options, $exception, $exceptionMessage)
364365
{
365-
$this->expectException($exception, $exceptionMessage);
366+
$this->expectException($exception);
367+
$this->expectExceptionMessage($exceptionMessage);
366368

367369
$constraints = [
368370
['alias' => 'alias', 'class' => 'Some\Validator\Class', 'options' => null, 'type' => 'entity'],

lib/internal/Magento/Framework/Validator/Test/Unit/Constraint/Option/CallbackTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Framework\Validator\Test\Unit\Constraint\Option;
78

89
use Magento\Framework\Validator\Constraint\Option\Callback;
@@ -28,7 +29,7 @@ class CallbackTest extends \PHPUnit\Framework\TestCase
2829
public function testGetValue($callback, $expectedResult, $arguments = null, $createInstance = false)
2930
{
3031
$option = new Callback($callback, $arguments, $createInstance);
31-
self::assertEquals($expectedResult, $option->getValue());
32+
$this->assertEquals($expectedResult, $option->getValue());
3233
}
3334

3435
/**
@@ -102,7 +103,7 @@ public function testSetArguments($value, $expectedValue)
102103
$option = new Callback(function () {
103104
});
104105
$option->setArguments($value);
105-
self::assertAttributeEquals($expectedValue, '_arguments', $option);
106+
$this->assertAttributeEquals($expectedValue, '_arguments', $option);
106107
}
107108

108109
/**
@@ -132,7 +133,8 @@ public function setArgumentsDataProvider()
132133
public function testGetValueException($callback, $expectedMessage, $createInstance = false)
133134
{
134135
$option = new Callback($callback, null, $createInstance);
135-
self::expectExceptionMessage($expectedMessage);
136+
$this->expectException('InvalidArgumentException');
137+
$this->expectExceptionMessage($expectedMessage);
136138
$option->getValue();
137139
}
138140

lib/internal/Magento/Framework/View/Test/Unit/Element/TemplateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ public function testFetchViewWithNoFileNameDeveloperMode()
175175
->method('getMode')
176176
->willReturn(\Magento\Framework\App\State::MODE_DEVELOPER);
177177

178-
$this->expectException(\Magento\Framework\Exception\ValidatorException::class, $exception);
178+
$this->expectException(\Magento\Framework\Exception\ValidatorException::class);
179+
$this->expectExceptionMessage($exception);
179180
$this->block->fetchView($template);
180181
}
181182

lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Override/ThemeModularTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public function testGetFilesWrongAncestor()
169169
$filePath = 'design/area/theme_path/Module_One/override/theme/vendor/parent_theme/1.xml';
170170
$expectedMessage = "Trying to override modular view file '$filePath' for theme 'vendor/parent_theme'"
171171
. ", which is not ancestor of theme 'vendor/theme_path'";
172-
$this->expectException(\Magento\Framework\Exception\LocalizedException::class, $expectedMessage);
172+
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
173+
$this->expectExceptionMessage($expectedMessage);
173174

174175
$theme = $this->getMockForAbstractClass(\Magento\Framework\View\Design\ThemeInterface::class);
175176
$theme->expects($this->once())->method('getFullPath')->willReturn($themePath);

lib/internal/Magento/Framework/View/Test/Unit/Layout/Argument/Interpreter/HelperMethodTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public function help($input)
6767
*/
6868
public function testEvaluateException($helperMethod, $expectedExceptionMessage)
6969
{
70-
$this->expectException('\InvalidArgumentException', $expectedExceptionMessage);
70+
$this->expectException('\InvalidArgumentException');
71+
$this->expectExceptionMessage($expectedExceptionMessage);
7172
$input = ['value' => 'some text', 'helper' => $helperMethod];
7273
$this->_model->evaluate($input);
7374
}

lib/internal/Magento/Framework/View/Test/Unit/Layout/Argument/Interpreter/NamedParamsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public function testEvaluate()
6262
*/
6363
public function testEvaluateWrongParam($input, $expectedExceptionMessage)
6464
{
65-
$this->expectException('\InvalidArgumentException', $expectedExceptionMessage);
65+
$this->expectException('\InvalidArgumentException');
66+
$this->expectExceptionMessage($expectedExceptionMessage);
6667
$this->_model->evaluate($input);
6768
}
6869

lib/internal/Magento/Framework/View/Test/Unit/Layout/Argument/Interpreter/ObjectTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function testEvaluate()
4949
*/
5050
public function testEvaluateWrongClass($input, $expectedException, $expectedExceptionMessage)
5151
{
52-
$this->expectException($expectedException, $expectedExceptionMessage);
52+
$this->expectException($expectedException);
53+
$this->expectExceptionMessage($expectedExceptionMessage);
5354
$self = $this;
5455
$this->_objectManager->expects($this->any())->method('create')->willReturnCallback(
5556
function ($className) use ($self) {

0 commit comments

Comments
 (0)