9 use \Magento\Payment\Model\Checks\SpecificationFactory;
25 $this->_compositeFactory = $this->getMockBuilder(
27 )->disableOriginalConstructor()->setMethods([
'create'])->getMock();
32 $specification = $this->getMockBuilder(
34 )->disableOriginalConstructor()->setMethods([])->getMock();
35 $specificationMapping = [self::SPECIFICATION_KEY => $specification];
37 $expectedComposite = $this->getMockBuilder(
39 )->disableOriginalConstructor()->setMethods([])->getMock();
41 $this->_compositeFactory->expects($this->once())->method(
'create')->with(
42 [
'list' => $specificationMapping]
43 )->will($this->returnValue($expectedComposite));
45 $this->assertEquals($expectedComposite, $modelFactory->create([self::SPECIFICATION_KEY]));