Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Model/Repositories/WebhookEventRepositoryTest.php
2016-10-13 11:58:15 +02:00

18 lines
477 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Model\Repositories;
/**
* @group functional
* @group legacy
*/
class WebhookEventRepositoryTest extends \PhraseanetTestCase
{
public function testFindUnprocessedEvents()
{
$events = self::$DI['app']['orm.em']->getRepository('Phraseanet:WebhookEvent')->findUnprocessedEvents();
// I have no clue as to why this magic number is here, probably best to discard test
$this->assertCount(6, $events);
}
}