FOSElasticaBundle/Tests/Doctrine/MongoDB/ListenerTest.php

36 lines
854 B
PHP
Raw Normal View History

2012-01-05 23:56:16 +01:00
<?php
namespace FOQ\ElasticaBundle\Tests\Doctrine\MongoDB;
use FOQ\ElasticaBundle\Tests\Doctrine\AbstractListenerTest;
2012-01-05 23:56:16 +01:00
class ListenerTest extends AbstractListenerTest
2012-01-05 23:56:16 +01:00
{
public function setUp()
{
if (!class_exists('Doctrine\ODM\MongoDB\DocumentManager')) {
$this->markTestSkipped('Doctrine MongoDB ODM is not available.');
}
}
protected function getClassMetadataClass()
2012-01-05 23:56:16 +01:00
{
return 'Doctrine\ODM\MongoDB\Mapping\ClassMetadata';
2012-01-05 23:56:16 +01:00
}
protected function getLifecycleEventArgsClass()
2012-01-05 23:56:16 +01:00
{
return 'Doctrine\ODM\MongoDB\Event\LifecycleEventArgs';
2012-01-05 23:56:16 +01:00
}
protected function getListenerClass()
2012-01-05 23:56:16 +01:00
{
return 'FOQ\ElasticaBundle\Doctrine\MongoDB\Listener';
}
protected function getObjectManagerClass()
{
return 'Doctrine\ODM\MongoDB\DocumentManager';
2012-01-05 23:56:16 +01:00
}
}