mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-26 14:53:48 +03:00
Fixed elements broken on module separation
This commit is contained in:
parent
ab9c2f728a
commit
fe8ef2030f
3 changed files with 9 additions and 6 deletions
|
@ -33,7 +33,7 @@ class EntityManagerFactory implements FactoryInterface
|
||||||
$dbConfig = isset($globalConfig['database']) ? $globalConfig['database'] : [];
|
$dbConfig = isset($globalConfig['database']) ? $globalConfig['database'] : [];
|
||||||
|
|
||||||
return EntityManager::create($dbConfig, Setup::createAnnotationMetadataConfiguration(
|
return EntityManager::create($dbConfig, Setup::createAnnotationMetadataConfiguration(
|
||||||
['src/Entity'],
|
['module/Core/src/Entity'],
|
||||||
$isDevMode,
|
$isDevMode,
|
||||||
'data/proxies',
|
'data/proxies',
|
||||||
$cache,
|
$cache,
|
||||||
|
|
|
@ -65,7 +65,7 @@ class UrlShortenerTest extends TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @expectedException \Acelaya\UrlShortener\Exception\RuntimeException
|
* @expectedException \Shlinkio\Shlink\Core\Exception\RuntimeException
|
||||||
*/
|
*/
|
||||||
public function exceptionIsThrownWhenOrmThrowsException()
|
public function exceptionIsThrownWhenOrmThrowsException()
|
||||||
{
|
{
|
||||||
|
@ -81,7 +81,7 @@ class UrlShortenerTest extends TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @expectedException \Acelaya\UrlShortener\Exception\InvalidUrlException
|
* @expectedException \Shlinkio\Shlink\Core\Exception\InvalidUrlException
|
||||||
*/
|
*/
|
||||||
public function exceptionIsThrownWhenUrlDoesNotExist()
|
public function exceptionIsThrownWhenUrlDoesNotExist()
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ class UrlShortenerTest extends TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @expectedException \Acelaya\UrlShortener\Exception\InvalidShortCodeException
|
* @expectedException \Shlinkio\Shlink\Core\Exception\InvalidShortCodeException
|
||||||
*/
|
*/
|
||||||
public function invalidCharSetThrowsException()
|
public function invalidCharSetThrowsException()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<phpunit bootstrap="./vendor/autoload.php" colors="true">
|
<phpunit bootstrap="./vendor/autoload.php" colors="true">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="AcelayaTest">
|
<testsuite name="Common">
|
||||||
<directory>./tests</directory>
|
<directory>./module/Common/test</directory>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="Core">
|
||||||
|
<directory>./module/Core/test</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue