unit testing - Symfony2 with LiipFunctionalTestBundle error when i load fixture -


i've installed liipfunctionaltestbundle , try use since yesterday i've got error , don't know how solve it.

i use basic configuration describe in documentation(config_test) :

framework: test: ~ session:     storage_id: session.storage.filesystem  liip_functional_test: ~  doctrine:     dbal:         default_connection: default         connections:             default:                 driver: pdo_sqlite                 path: %kernel.cache_dir%/test.sql 

i create simple test file in bundle, know if db loaded:

class adcontrollertest extends webtestcase {     public function testindex()     {         $client = static::createclient();          $this->loadfixtures(array());          $this->asserttrue(true);     } } 

when use $this->loadfixtures(array()); it's works fine, can start off empty database (initialized schema) when replace , try use fixture have error :

$this->loadfixtures(array('\blabla\mybunble\datafixtures\orm\loaduserdata'));

now have error :

doctrine\dbal\dbalexception: exception occurred while executing 'pragma table_info(transaction)':  sqlstate[hy000]: general error: 1 near "transaction": syntax error 

i'm pretty new in testing, if use bundle , tips, i'll grateful :)

thanks

i have same error , has driven me nuts 2 hours, info related symfony , testing question namespaces , routes ok... whats problem? it's silly easy... transaction sqlite keyword: https://www.sqlite.org/lang_keywords.html if remove cache test working when cames retrieve table info crashes because of table name.

i hope results helpful else have same problem.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -