mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
14 lines
498 B
PHP
14 lines
498 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Model\Repositories;
|
|
|
|
class ApiOauthCodeRepositoryTest extends \PhraseanetTestCase
|
|
{
|
|
public function testFindByAccount()
|
|
{
|
|
self::$DI['app']['manipulator.api-oauth-code']->create(self::$DI['oauth2-app-acc-user'], 'http://www.callback.fr', time() + 40);
|
|
$codes = self::$DI['app']['EM']->getRepository('Phraseanet:ApiOauthCode')->findByAccount(self::$DI['oauth2-app-acc-user']);
|
|
$this->assertGreaterThan(0, count($codes));
|
|
}
|
|
}
|