fix tests for older php versions

This commit is contained in:
leogermani 2020-02-11 11:00:01 -03:00
parent a9e5f8d58a
commit 5724260bbf
3 changed files with 33 additions and 39 deletions

View File

@ -263,7 +263,7 @@ class REST_Collections_Controller extends REST_Controller {
function($m) { function($m) {
return $m->get_id(); return $m->get_id();
}, },
$metadata, $metadata
); );
$item_arr['metadata_order'] = \array_values( \array_filter( $item_arr['metadata_order'] = \array_values( \array_filter(
$item_arr['metadata_order'], $item_arr['metadata_order'],
@ -282,7 +282,7 @@ class REST_Collections_Controller extends REST_Controller {
function($f) { function($f) {
return $f->get_id(); return $f->get_id();
}, },
$filters, $filters
); );
$item_arr['filters_order'] = \array_values( \array_filter( $item_arr['filters_order'] = \array_values( \array_filter(
$item_arr['filters_order'], $item_arr['filters_order'],

View File

@ -744,9 +744,6 @@ class TAINACAN_REST_Terms_Controller extends TAINACAN_UnitApiTestCase {
} }
/**
* @group leo
*/
public function test_private_filter_ids_not_in_filter_order(){ public function test_private_filter_ids_not_in_filter_order(){
$collection = $this->tainacan_entity_factory->create_entity( $collection = $this->tainacan_entity_factory->create_entity(
'collection', 'collection',

View File

@ -770,9 +770,6 @@ class TAINACAN_REST_Metadata_Controller extends TAINACAN_UnitApiTestCase {
$this->assertNotEquals($metadatumB->get_id(), $data[2]['id']); $this->assertNotEquals($metadatumB->get_id(), $data[2]['id']);
} }
/**
* @group leo
*/
public function test_private_meta_ids_not_in_metadata_order(){ public function test_private_meta_ids_not_in_metadata_order(){
$collection = $this->tainacan_entity_factory->create_entity( $collection = $this->tainacan_entity_factory->create_entity(
'collection', 'collection',