Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Model/Repositories/WebhookEventRepositoryTest.php
2020-06-04 14:13:11 +03:00

18 lines
478 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(34, $events);
}
}