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