Fix CS in unit tests + remove unused unit tests

This commit is contained in:
Romain Neutron
2012-05-10 17:08:01 +02:00
parent 21c2d15754
commit 17cd58f5e1
224 changed files with 16423 additions and 22543 deletions

View File

@@ -4,103 +4,103 @@ require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
class API_OAuth2_RefreshTokenTest extends PhraseanetPHPUnitAbstract
{
/**
* @var API_OAuth2_RefreshToken
*/
protected $object;
protected $token;
protected $scope;
protected $application;
protected $account;
/**
* @var API_OAuth2_RefreshToken
*/
protected $object;
protected $token;
protected $scope;
protected $application;
protected $account;
public function setUp()
{
parent::setUp();
$appbox = appbox::get_instance(\bootstrap::getCore());
$this->application = API_OAuth2_Application::create($appbox, self::$user, 'test app');
$this->account = API_OAuth2_Account::load_with_user($appbox, $this->application, self::$user);
public function setUp()
{
$appbox = appbox::get_instance(\bootstrap::getCore());
$this->application = API_OAuth2_Application::create($appbox, self::$user, 'test app');
$this->account = API_OAuth2_Account::load_with_user($appbox, $this->application, self::$user);
$expires = time() + 100;
$this->token = random::generatePassword(8);
$this->scope = 'scopidou';
$expires = time() + 100;
$this->token = random::generatePassword(8);
$this->scope = 'scopidou';
$this->object = API_OAuth2_RefreshToken::create($appbox, $this->account, $expires, $this->token, $this->scope);
}
$this->object = API_OAuth2_RefreshToken::create($appbox, $this->account, $expires, $this->token, $this->scope);
}
public function tearDown()
{
$this->application->delete();
parent::tearDown();
}
public function tearDown()
{
$this->application->delete();
}
public function testGet_value()
{
$this->assertEquals($this->token, $this->object->get_value());
}
public function testGet_value()
{
$this->assertEquals($this->token, $this->object->get_value());
}
/**
* @todo Implement testGet_account().
*/
public function testGet_account()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testGet_account().
*/
public function testGet_account()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
/**
* @todo Implement testGet_expires().
*/
public function testGet_expires()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testGet_expires().
*/
public function testGet_expires()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
/**
* @todo Implement testGet_scope().
*/
public function testGet_scope()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testGet_scope().
*/
public function testGet_scope()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
/**
* @todo Implement testDelete().
*/
public function testDelete()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testDelete().
*/
public function testDelete()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
/**
* @todo Implement testLoad_by_account().
*/
public function testLoad_by_account()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testLoad_by_account().
*/
public function testLoad_by_account()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
/**
* @todo Implement testCreate().
*/
public function testCreate()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
/**
* @todo Implement testCreate().
*/
public function testCreate()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
);
}
}