Skip to content

Commit

Permalink
api-importes test improvements #313
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmedeiros committed Oct 11, 2019
1 parent cfde8ab commit ff85288
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test-api-importers.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ public function test_create(){
public function test_update() {
global $Tainacan_Importer_Handler;
$slug='csv';
if ($importer = $Tainacan_Importer_Handler->initialize_importer($slug)) {
$response = $importer->_to_Array();
$Tainacan_Importer_Handler->save_importer_instance($importer);
} else {
$this->assertFalse(true);
}
$importer = $Tainacan_Importer_Handler->initialize_importer($slug);
$Tainacan_Importer_Handler->save_importer_instance($importer);
$session_id = $importer->get_id();

$params = json_encode([
Expand Down

0 comments on commit ff85288

Please sign in to comment.