Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Model/Repositories/ApiAccountRepositoryTest.php
2015-06-15 19:30:51 +02:00

17 lines
454 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Model\Repositories;
/**
* @group functional
* @group legacy
*/
class ApiAccountRepositoryTest extends \PhraseanetTestCase
{
public function testFindByUserAndApplication()
{
$acc = self::$DI['app']['orm.em']->getRepository('Phraseanet:ApiAccount')->findByUserAndApplication(self::$DI['user_notAdmin'], self::$DI['oauth2-app-user-not-admin']);
$this->assertEquals(1, count($acc));
}
}