mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Fix CS
This commit is contained in:
@@ -111,7 +111,7 @@ class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||
|
||||
public function testGenerate_token()
|
||||
{
|
||||
for ($i = 0; $i < 100; $i ++ ) {
|
||||
for ($i = 0; $i < 100; $i ++) {
|
||||
$this->assertMd5(API_OAuth2_Token::generate_token());
|
||||
}
|
||||
}
|
||||
|
@@ -173,7 +173,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
|
||||
$found = false;
|
||||
foreach ($data['response']['results'] as $retRecord) {
|
||||
if($retRecord['record_id'] == $record->get_record_id() && $retRecord['databox_id'] == $record->get_sbas_id()) {
|
||||
if ($retRecord['record_id'] == $record->get_record_id() && $retRecord['databox_id'] == $record->get_sbas_id()) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$found = false;
|
||||
|
||||
foreach ($data['response']['results'] as $retStory) {
|
||||
if($retStory['record_id'] == $story->get_record_id() && $retStory['databox_id'] == $story->get_sbas_id()) {
|
||||
if ($retStory['record_id'] == $story->get_record_id() && $retStory['databox_id'] == $story->get_sbas_id()) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$found = false;
|
||||
|
||||
foreach ($data['response']['results']['stories'] as $retStory) {
|
||||
if($retStory['story_id'] == $story->get_record_id() && $retStory['databox_id'] == $story->get_sbas_id()) {
|
||||
if ($retStory['story_id'] == $story->get_record_id() && $retStory['databox_id'] == $story->get_sbas_id()) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
@@ -324,7 +324,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$found = false;
|
||||
|
||||
foreach ($data['response']['results']['records'] as $retRecord) {
|
||||
if($retRecord['record_id'] == $record->get_record_id() && $retRecord['databox_id'] == $record->get_sbas_id()) {
|
||||
if ($retRecord['record_id'] == $record->get_record_id() && $retRecord['databox_id'] == $record->get_sbas_id()) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
break;
|
||||
}
|
||||
|
||||
if(null === $statusbit) {
|
||||
if (null === $statusbit) {
|
||||
$this->markTestSkipped('No status bit defined in databox');
|
||||
}
|
||||
|
||||
@@ -700,4 +700,3 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$this->assertInternalType($type, $response['response'][$field]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -132,7 +132,6 @@ class API_V1_resultTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
$date_obj2 = new DateTime();
|
||||
$this->assertLessThan(3, abs($date_obj1->format('U') - $date_obj2->format('U')), 'No more than 3sec between now and the query');
|
||||
|
||||
|
||||
$this->assertArrayHasKey("http_code", $response["meta"]);
|
||||
$this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_INT, $response["meta"]["http_code"]);
|
||||
$this->assertEquals(200, $response["meta"]["http_code"]);
|
||||
|
Reference in New Issue
Block a user