Skip to content

Commit

Permalink
drop tests that test for invalid but annotated types
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vo committed Jul 9, 2020
1 parent 135e0d0 commit baf6417
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions core-bundle/tests/Contao/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,6 @@ public function getGetLegacy(): \Generator
public function testDoesNotFactorImagesInTheLegacyMethodIfTheArgumentIsInvalid(): void
{
$this->assertNull(Image::get('', 100, 100));
$this->assertNull(Image::get(0, 100, 100));
$this->assertNull(Image::get(null, 100, 100));
}

/**
Expand Down
8 changes: 0 additions & 8 deletions core-bundle/tests/Routing/UrlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,6 @@ public function testDoesNotModifyTheContextIfThereIsAHostname(): void
);
}

public function testHandlesNonArrayParameters(): void
{
$this
->getUrlGenerator($this->mockRouterWithContext(['alias' => 'foo']))
->generate('foo', 'bar')
;
}

private function getUrlGenerator(UrlGeneratorInterface $router, bool $prependLocale = false, bool $useAutoItem = true): UrlGenerator
{
$framework = $this->mockContaoFramework();
Expand Down

0 comments on commit baf6417

Please sign in to comment.