Updated installer so that it no longer asks for a charset and instead just generates one

This commit is contained in:
Alejandro Celaya
2019-02-03 13:02:12 +01:00
parent 79c132219b
commit 2d18ef5cee
6 changed files with 35 additions and 19 deletions

View File

@@ -71,13 +71,13 @@ class UrlShortenerTest extends TestCase
*/
public function urlIsProperlyShortened(): void
{
// 10 -> 12C1c
// 10 -> 0Q1Y
$shortUrl = $this->urlShortener->urlToShortCode(
new Uri('http://foobar.com/12345/hello?foo=bar'),
[],
ShortUrlMeta::createEmpty()
);
$this->assertEquals('12C1c', $shortUrl->getShortCode());
$this->assertEquals('0Q1Y', $shortUrl->getShortCode());
}
/**
@@ -215,7 +215,6 @@ class UrlShortenerTest extends TestCase
*/
public function shortCodeIsProperlyParsed(): void
{
// 12C1c -> 10
$shortCode = '12C1c';
$shortUrl = new ShortUrl('expected_url');
$shortUrl->setShortCode($shortCode);