<?php

namespace Tests\AppBundle\API\Details;

use Symfony\Component\HttpFoundation\ParameterBag;
use Tests\AppBundle\API\WebserviceTestCase;

class OrganismTest extends WebserviceTestCase
{

    public function testExecute()
    {
        $default_db = $this->default_db;
        $session = null;
        $organisms = $this->webservice->factory('details', 'organism');
        $parameterBag = new ParameterBag(array('dbversion' => $default_db, 'id' => 42));
        $results = $organisms->execute($parameterBag, $session);
        $expected = array(
            "fennec_id" => 42,
            "scientific_name" => "Trebouxiophyceae sp. TP-2016a",
            "eol_identifier" => "",
            "ncbi_identifier" => "3083"
        );
        $this->assertEquals($expected, $results);
    }
}
<?php

namespace Tests\AppBundle\API\Details;

use Symfony\Component\HttpFoundation\ParameterBag;
use Tests\AppBundle\API\WebserviceTestCase;

class OrganismTest extends WebserviceTestCase
{

    public function testExecute()
    {
        $default_db = $this->default_db;
        $session = null;
        $organisms = $this->webservice->factory('details', 'organism');
        $parameterBag = new ParameterBag(array('dbversion' => $default_db, 'id' => 42));
        $results = $organisms->execute($parameterBag, $session);
        $expected = array(
            "organism_id" => 42,
            "scientific_name" => "Artocarpus pithecogallus",
            "rank" => "species",
            "common_name" => null,
            "eol_accession" => "",
            "ncbi_accession" => "1679377"
        );
        $this->assertEquals($expected, $results);
    }
}
--- 
+++ 
@@ -16,12 +16,10 @@
         $parameterBag = new ParameterBag(array('dbversion' => $default_db, 'id' => 42));
         $results = $organisms->execute($parameterBag, $session);
         $expected = array(
-            "organism_id" => 42,
-            "scientific_name" => "Artocarpus pithecogallus",
-            "rank" => "species",
-            "common_name" => null,
-            "eol_accession" => "",
-            "ncbi_accession" => "1679377"
+            "fennec_id" => 42,
+            "scientific_name" => "Trebouxiophyceae sp. TP-2016a",
+            "eol_identifier" => "",
+            "ncbi_identifier" => "3083"
         );
         $this->assertEquals($expected, $results);
     }
Update expectation for details/organism test
