diff --git a/tests/__test-api-exposers.php b/tests/__test-api-exposers.php index fb61f84ca..bfedf2239 100644 --- a/tests/__test-api-exposers.php +++ b/tests/__test-api-exposers.php @@ -536,5 +536,3 @@ class TAINACAN_REST_Exposers extends TAINACAN_UnitApiTestCase { } */// TODO automate test this } - -?> \ No newline at end of file diff --git a/tests/test-api-importers.php b/tests/test-api-importers.php index 1e064b01f..0efc9522b 100644 --- a/tests/test-api-importers.php +++ b/tests/test-api-importers.php @@ -7,10 +7,8 @@ namespace Tainacan\Tests; */ class TAINACAN_REST_Importers_Controller extends TAINACAN_UnitApiTestCase { - public function test_create(){ - $params = json_encode([ - 'importer_slug' => 'csv' - ]); + public function test_create() { + $params = json_encode([ 'importer_slug' => 'csv' ]); $request = new \WP_REST_Request('POST', $this->namespace . '/importers/session'); $request->set_body($params); @@ -54,6 +52,4 @@ class TAINACAN_REST_Importers_Controller extends TAINACAN_UnitApiTestCase { $this->assertEquals(1234, $__importer->get_collections()[0]['total_items']); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/tests/test-taxonomies.php b/tests/test-taxonomies.php index e02ab29ba..8463d2041 100644 --- a/tests/test-taxonomies.php +++ b/tests/test-taxonomies.php @@ -3,17 +3,16 @@ namespace Tainacan\Tests; /** - * Class TestCollections + * Class Taxonomies * * @package Test_Tainacan */ /** - * Sample test case. + * Taxonomies test case. */ class Taxonomies extends TAINACAN_UnitTestCase { - /** * Teste da insercao de uma taxonomia simples */ @@ -334,7 +333,6 @@ class Taxonomies extends TAINACAN_UnitTestCase { } function test_brackets_2() { - $Tainacan_Item_Metadata = \Tainacan\Repositories\Item_Metadata::get_instance(); $collection = $this->tainacan_entity_factory->create_entity( @@ -411,9 +409,6 @@ class Taxonomies extends TAINACAN_UnitTestCase { $itemMeta2_check = new \Tainacan\Entities\Item_Metadata_Entity($i2, $metadatum); $this->assertEquals('[Rock]', $itemMeta2_check->get_value()->get_name()); - - - } function test_metadata_taxonomy_term_count() { @@ -538,7 +533,6 @@ class Taxonomies extends TAINACAN_UnitTestCase { $itemMeta1_repo->validate(); $Tainacan_Item_Metadata->insert($itemMeta1_repo); - $i2 = $this->tainacan_entity_factory->create_entity( 'item', array( @@ -587,8 +581,6 @@ class Taxonomies extends TAINACAN_UnitTestCase { function test_term_taxonomy_filtered_by_collections() { $Tainacan_Taxonomies = \Tainacan\Repositories\Taxonomies::get_instance(); - $Tainacan_Terms = \Tainacan\Repositories\Terms::get_instance(); - $Tainacan_Item_Metadata = \Tainacan\Repositories\Item_Metadata::get_instance(); $tax = $this->tainacan_entity_factory->create_entity( 'taxonomy', @@ -704,7 +696,6 @@ class Taxonomies extends TAINACAN_UnitTestCase { $response = $matches[3][0]; $this->assertEquals($response, $expected_response); - $meta_query = [ 'metaquery' => [ [ diff --git a/tests/test-utilities.php b/tests/test-utilities.php index b4434bf31..94d230e65 100644 --- a/tests/test-utilities.php +++ b/tests/test-utilities.php @@ -9,14 +9,11 @@ namespace Tainacan\Tests; */ /** - * Sample test case. + * TestUtilities */ class TestUtilities extends TAINACAN_UnitTestCase { - function test_initials() { - - $string = 'Roberto Carlos'; $this->assertEquals('RC', tainacan_get_initials($string)); @@ -42,7 +39,6 @@ class TestUtilities extends TAINACAN_UnitTestCase { $string = ''; $this->assertEquals('', tainacan_get_initials($string)); - } function test_get_descendants_ids() {