Skip to content

Commit 1b6eaa3

Browse files
committed
Updated tests
1 parent adfadc2 commit 1b6eaa3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Tests/Form/Type/BootstrapCollectionTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ public function testBuildView()
5050
}
5151

5252
/**
53-
* @covers Braincrafted\Bundle\BootstrapBundle\Form\Type\BootstrapCollectionType::setDefaultOptions()
53+
* @covers Braincrafted\Bundle\BootstrapBundle\Form\Type\BootstrapCollectionType::configureOptions()
5454
*/
55-
public function testSetDefaultOptions()
55+
public function testConfigureOptions()
5656
{
57-
$resolver = m::mock('Symfony\Component\OptionsResolver\OptionsResolverInterface');
57+
$resolver = m::mock('Symfony\Component\OptionsResolver\OptionsResolver');
5858
$resolver->shouldReceive('setDefaults');
5959
$resolver->shouldReceive('setNormalizers');
6060

61-
$this->type->setDefaultOptions($resolver);
61+
$this->type->configureOptions($resolver);
6262
}
6363

6464
/**

Tests/Form/Type/FormActionsTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testBuildViewWithBadField()
9090
$this->type->buildView($view, $form, $options);
9191
}
9292

93-
public function testSetDefaultOptions()
93+
public function testConfigureOptions()
9494
{
9595

9696
$defaults = array(
@@ -99,10 +99,10 @@ public function testSetDefaultOptions()
9999
'mapped' => false,
100100
);
101101

102-
$resolver = m::mock('Symfony\Component\OptionsResolver\OptionsResolverInterface');
102+
$resolver = m::mock('Symfony\Component\OptionsResolver\OptionsResolver');
103103
$resolver->shouldReceive('setDefaults')->with($defaults)->once();
104104

105-
$this->type->setDefaultOptions($resolver);
105+
$this->type->configureOptions($resolver);
106106
}
107107

108108
public function testGetName()

0 commit comments

Comments
 (0)