Execute command on phpunit test

I’m writing a functional test, the execution of tested code includes the execution of a symfony command but it seems like the command its not executes, it doen’t stop on a breakpoint and the results are not stored on the database, the code works when is not executed on a test.

There is any problem to execute commans on phpunit, should I configure anything??

public function testUploadResults():void{
        
        
        //set api key in header
       
        $crawler = $this->client->request( Request::METHOD_GET, '/en/upload-result');

        //test if response is ok
        $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
 
        //get the form
        $form = $crawler->selectButton('Upload')->form();

        $form['analysis[type]']->setValue('TYPE1');
        $form['analysis[file]']->setValue(new UploadedFile('/var/www/test_files/test.csv', 'test.csv', 'text/csv'));

        //submit form
        $this->client->submit($form);

        //test if response is ok
        $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
        
        //probar que haya labresults para el test
        $results = $this->em->getRepository('AppBundle:Result')->findBy(['sample' => 'XXXX']);
        $this->assertTrue( count($results)>1 );
    }