8000 Remove now irrelevant tests · symfony/symfony@19e52d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19e52d7

Browse files
committed
Remove now irrelevant tests
1 parent ba28e7b commit 19e52d7

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/Symfony/Component/Form/Tests/FormBuilderTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ public function testAddNameNoStringAndNoInteger()
5555
$this->builder->add(true);
5656
}
5757

58-
public function testAddTypeNoString()
59-
{
60-
$this->expectException('Symfony\Component\Form\Exception\UnexpectedTypeException');
61-
$this->builder->add('foo', 1234);
62-
}
63-
6458
public function testAddWithGuessFluent()
6559
{
6660
$this->builder = new FormBuilder('name', 'stdClass', $this->dispatcher, $this->factory);
@@ -120,13 +114,6 @@ public function testMaintainOrderOfLazyAndExplicitChildren()
120114
$this->assertSame(['foo', 'bar', 'baz'], array_keys($children));
121115
}
122116

123-
public function testAddFormType()
124-
{
125-
$this->assertFalse($this->builder->has('foo'));
126-
$this->builder->add('foo', $this->getMockBuilder('Symfony\Component\Form\FormTypeInterface')->getMock());
127-
$this->assertTrue($this->builder->has('foo'));
128-
}
129-
130117
public function testRemove()
131118
{
132119
$this->builder->add('foo', 'Symfony\Component\Form\Extension\Core\Type\TextType');

src/Symfony/Component/Form/Tests/FormFactoryTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,6 @@ public function testCreateNamedBuilderDoesNotOverrideExistingDataOption()
146146
$this->assertSame($this->builder, $this->factory->createNamedBuilder('name', 'type', 'DATA', $options));
147147
}
148148

149-
public function testCreateNamedBuilderThrowsUnderstandableException()
150-
{
151-
$this->expectException('Symfony\Component\Form\Exception\UnexpectedTypeException');
152-
$this->expectExceptionMessage('Expected argument of type "string", "stdClass" given');
153-
$this->factory->createNamedBuilder('name', new \stdClass());
154-
}
155-
156-
public function testCreateThrowsUnderstandableException()
157-
{
158-
$this->expectException('Symfony\Component\Form\Exception\UnexpectedTypeException');
159-
$this->expectExceptionMessage('Expected argument of type "string", "stdClass" given');
160-
$this->factory->create(new \stdClass());
161-
}
162-
163149
public function testCreateUsesBlockPrefixIfTypeGivenAsString()
164150
{
165151
$options = ['a' => '1', 'b' => '2'];

0 commit comments

Comments
 (0)
0