mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
test
This commit is contained in:
@@ -52,7 +52,7 @@ class PhraseaExceptionHandlerSubscriberTest extends \PhraseanetTestCase
|
|||||||
$app['exception_handler']->disable();
|
$app['exception_handler']->disable();
|
||||||
|
|
||||||
$client = new Client($app);
|
$client = new Client($app);
|
||||||
$this->setExpectedException('\Exception');
|
$this->setExpectedException(\Exception::class);
|
||||||
$client->request('GET', '/');
|
$client->request('GET', '/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@ use Alchemy\Phrasea\WorkerManager\Worker\Factory\WorkerFactoryInterface;
|
|||||||
use Alchemy\Phrasea\WorkerManager\Worker\Resolver\TypeBasedWorkerResolver;
|
use Alchemy\Phrasea\WorkerManager\Worker\Resolver\TypeBasedWorkerResolver;
|
||||||
use Alchemy\Phrasea\WorkerManager\Worker\WorkerInterface;
|
use Alchemy\Phrasea\WorkerManager\Worker\WorkerInterface;
|
||||||
|
|
||||||
class TypeBasedWorkerResolverTest extends \PhraseanetTestCase
|
class TypeBasedWorkerResolverTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testClassImplements()
|
public function testClassImplements()
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ class TypeBasedWorkerResolverTest extends \PhraseanetTestCase
|
|||||||
|
|
||||||
$sut->addFactory(MessagePublisher::SUBDEF_CREATION_TYPE, $workerFactory);
|
$sut->addFactory(MessagePublisher::SUBDEF_CREATION_TYPE, $workerFactory);
|
||||||
|
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->setExpectedException(\RuntimeException::class);
|
||||||
|
|
||||||
$sut->getWorker(MessagePublisher::WRITE_METADATAS_TYPE, ['mock-message']);
|
$sut->getWorker(MessagePublisher::WRITE_METADATAS_TYPE, ['mock-message']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user