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'] : []; $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,

View file

@ -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()
{ {

View file

@ -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>