Skip to content

Commit

Permalink
fixed tests #804 #808
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermednt committed Aug 22, 2018
1 parent 8acaccb commit f3db1a5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,4 @@ public function configureOptions(OptionsResolver $resolver)
'data_class' => 'PROCERGS\LoginCidadao\AccountingBundle\Entity\ProcergsLink',
]);
}

/**
* @param OptionsResolverInterface $resolver
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$this->configureOptions($resolver);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ public function testConfigureOptions()
{
/** @var OptionsResolver|MockObject $resolver */
$resolver = $this->createMock(OptionsResolver::class);
$resolver->expects($this->exactly(2))->method('setDefaults')
$resolver->expects($this->once())->method('setDefaults')
->with(['data_class' => ProcergsLink::class]);

$form = new ProcergsLinkType();
$form->configureOptions($resolver);
$form->setDefaultOptions($resolver);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,42 +40,33 @@ public function getConfigTreeBuilder()
->end()
->end()
->arrayNode('endpoints')
->cannotBeEmpty()
->isRequired()
->children()
->scalarNode('wsdl')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('login')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('authorization')
->isRequired()
->cannotBeEmpty()
->end()
->end()
->end()
->arrayNode('authentication')
->cannotBeEmpty()
->isRequired()
->children()
->scalarNode('organization')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('username')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('password')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('hmac_secret')
->isRequired()
->cannotBeEmpty()
->end()
->end()
->end()
Expand Down

0 comments on commit f3db1a5

Please sign in to comment.