/** * @test */ public function shouldNotRequireAnyConfiguration() { $factory = new OfflinePaymentFactory(); $tb = new TreeBuilder(); $rootNode = $tb->root('foo'); $factory->addConfiguration($rootNode); $processor = new Processor(); $config = $processor->process($tb->buildTree(), array(array('obtain_credit_card' => false))); //come from abstract payment factory $this->assertArrayHasKey('actions', $config); $this->assertArrayHasKey('apis', $config); $this->assertArrayHasKey('extensions', $config); }