Fixed elements broken on module separation

This commit is contained in:
Alejandro Celaya 2016-07-19 18:05:06 +02:00
parent ab9c2f728a
commit fe8ef2030f
3 changed files with 9 additions and 6 deletions

View file

@ -33,7 +33,7 @@ class EntityManagerFactory implements FactoryInterface
$dbConfig = isset($globalConfig['database']) ? $globalConfig['database'] : [];
return EntityManager::create($dbConfig, Setup::createAnnotationMetadataConfiguration(
['src/Entity'],
['module/Core/src/Entity'],
$isDevMode,
'data/proxies',
$cache,

View file

@ -65,7 +65,7 @@ class UrlShortenerTest extends TestCase
/**
* @test
* @expectedException \Acelaya\UrlShortener\Exception\RuntimeException
* @expectedException \Shlinkio\Shlink\Core\Exception\RuntimeException
*/
public function exceptionIsThrownWhenOrmThrowsException()
{
@ -81,7 +81,7 @@ class UrlShortenerTest extends TestCase
/**
* @test
* @expectedException \Acelaya\UrlShortener\Exception\InvalidUrlException
* @expectedException \Shlinkio\Shlink\Core\Exception\InvalidUrlException
*/
public function exceptionIsThrownWhenUrlDoesNotExist()
{
@ -126,7 +126,7 @@ class UrlShortenerTest extends TestCase
/**
* @test
* @expectedException \Acelaya\UrlShortener\Exception\InvalidShortCodeException
* @expectedException \Shlinkio\Shlink\Core\Exception\InvalidShortCodeException
*/
public function invalidCharSetThrowsException()
{

View file

@ -1,7 +1,10 @@
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="AcelayaTest">
<directory>./tests</directory>
<testsuite name="Common">
<directory>./module/Common/test</directory>
</testsuite>
<testsuite name="Core">
<directory>./module/Core/test</directory>
</testsuite>
</testsuites>