mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
23 lines
649 B
PHP
23 lines
649 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Model\Repositories;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
class ApiOauthTokenRepositoryTest extends \PhraseanetTestCase
|
|
{
|
|
public function testFindDeveloperToken()
|
|
{
|
|
$tok = self::$DI['app']['orm.em']->getRepository('Phraseanet:ApiOauthToken')->findByAccount(self::$DI['oauth2-app-acc-user']);
|
|
$this->assertNotNull($tok);
|
|
}
|
|
|
|
public function testFindOauthTokens()
|
|
{
|
|
$tokens = self::$DI['app']['orm.em']->getRepository('Phraseanet:ApiOauthToken')->findOauthTokens(self::$DI['oauth2-app-acc-user']);
|
|
$this->assertGreaterThan(0, count($tokens));
|
|
}
|
|
}
|