test/src/Api/Client/SearchFilesFactoryTest.php
/**
      * Helper function to verify the response.
      * @param SearchFilesResponse $response
      */
Helper function to verify the response.
Helper function to verify the response .
private function _checkTestResponse(SearchFilesResponse $response)
    {
        $this->assertNotNull($response);
        $this->assertEquals(SearchFilesFactoryTest::TEST_NB_RESULTS, $response->getNbResults());
        $this->assertEquals(SearchFilesFactoryTest::TEST_FILE_ID, $response->getFiles()[0]->getId());
        $this->assertEquals(SearchFilesFactoryTest::TEST_FILE_TITLE, $response->getFiles()[0]->getTitle());
    }
private function _checkTestResponse ( SearchFilesResponse $ response ) { $ this -> assertNotNull ( $ response ) ; $ this -> assertEquals ( SearchFilesFactoryTest :: TEST_NB_RESULTS , $ response -> getNbResults ( ) ) ; $ this -> assertEquals ( SearchFilesFactoryTest :: TEST_FILE_ID , $ response -> getFiles ( ) [ 0 ] -> getId ( ) ) ; $ this -> assertEquals ( SearchFilesFactoryTest :: TEST_FILE_TITLE , $ response -> getFiles ( ) [ 0 ] -> getTitle ( ) ) ; }
Helper function to verify the response.
Helper function to verify the response .