Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Model/Repositories/ApiAccountRepositoryTest.php
2014-03-24 16:07:59 +01:00

13 lines
404 B
PHP

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