Skip to content

Commit

Permalink
Merge pull request #54 from wikimedia/derpecation
Browse files Browse the repository at this point in the history
Remove a commented out test
  • Loading branch information
samwilson committed Jan 15, 2019
2 parents 53e5b3e + 9f177dc commit f9ac097
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/Controller/ApiControllerTest.php
Expand Up @@ -26,29 +26,6 @@ public function testGetFile(): void
self::assertStringEqualsFile(SvgFileTest::TEST_FILE_RENDERED, $response->getContent());
}

/**
* @group Broken
* https://phabricator.wikimedia.org/T209906
*/
public function testGetFileWithTranslations(): void
{
$controller = $this->makeController();

$translations = SvgFileTest::EXPECTED_TRANSLATIONS;
$translations['tspan2987']['ru'] = [
'text' => 'Привет',
'x' => '80',
'y' => '108.07646',
'id' => 'tspan2987-ru',
];
$request = new Request([], [], [], [], [], [], \GuzzleHttp\json_encode($translations));

$response = $controller->getFile('Foo.svg', 'ru', $request);
self::assertEquals(200, $response->getStatusCode());
self::assertEquals('image/svg+xml', $response->headers->get('Content-Type'));
self::assertNotFalse(strpos($response->getContent(), 'Прив1ет'));
}

/**
* @covers \App\Controller\ApiController::getTranslations()
*/
Expand Down

0 comments on commit f9ac097

Please sign in to comment.