9 use \Magento\Setup\Module\Di\Compiler\Config\ModificationChain;
15 $modificationsList = [];
16 $modificationsList[] = $this->getMockBuilder(
19 $modificationsList[] = $this->getMockBuilder(
28 $this->expectException(
'InvalidArgumentException');
29 $this->expectExceptionMessage(
'Wrong modifier provided');
30 $modificationsList = [];
31 $modificationsList[] = $this->getMockBuilder(
34 $modificationsList[] = $this->getMockBuilder(
37 $modificationsList[] =
'banana';
49 'data' => [1, 2, 3, 1]
53 'data' => [1, 2, 3, 1, 1]
61 $modificationsList = [$modifier1, $modifier2];
63 $modifier1->expects($this->once())
66 ->willReturn($expectedArray1);
68 $modifier2->expects($this->once())
70 ->with($expectedArray1)
71 ->willReturn($expectedArray2);
75 $this->assertEquals($expectedArray2, $chain->modify($inputArray));
testConstructorException()