-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ok I have found it
So after cursing, sleeping two nights, more cursing I decided to tear
down everything and bake anew. And behold there was an error while baking.
The problem was, that I had renamed one of my tables, while setting up
the db structure, but forgot to change the corresponding key in a
related table. No wonder no fixture was found.
So now the Test is running. :)
Anja
Am 01.09.2013 20:57, schrieb Anja Liebermann:
> Hi folks!
>
>
> I start a new app on my local Linux machine (Linux THOR 3.8.0-29-generic
> #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64
> GNU/Linux) Cake Version 2.3.9
> and want to give test driven development a try. I have set up my test
> database and use my root access for testing. I have baked everything via
> console and want now to start.
>
> I created my first method in my first model and want to run the test for
> it. And even when I reduce me test method to:
> $result = 2;
> $expected = 2;
> $this->assertEquals($expected, $result);
> I get a huge load of errors.
>
> What I can make of it that somehow it isn't able to fill my mysql table
> with the baked fixture:
> "Warning: Fixture creation for "_cycles" failed "SQLSTATE[42000]: Syntax
> error or access violation: 1065 Query was empty"
>
>
> Here comes the complete output, at the bottom are my settings and versions.
>
> Has anybody an idea where to start fixing this?
>
>
> Thanks in advance!
>
> Anja
>
>
> Running CycleTest
> Warning: Fixture creation for "_cycles" failed "SQLSTATE[42000]: Syntax
> error or access violation: 1065 Query was empty" in
> /var/www/lunaneu/lib/Cake/TestSuite/Fixture/CakeTestFixture.php on line 235
>
> Call Stack:
> 0.0006 249448 1. {main}() /var/www/lunaneu/luna/webroot/test.php:0
> 0.05501995720 2. CakeTestSuiteDispatcher::run()
> /var/www/lunaneu/luna/webroot/test.php:100
> 0.05501996072 3. CakeTestSuiteDispatcher->dispatch()
> /var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:117
> 0.06932853992 4. CakeTestSuiteDispatcher->_runTestCase()
> /var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:100
> 0.07343071856 5. CakeTestSuiteCommand->run($argv = array (0 =>
> '--filter', 1 => FALSE, 2 => '--output', 3 => 'html', 4 => '--fixture',
> 5 => NULL), $exit = ???)
> /var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:247
> 0.11784236416 6. CakeTestRunner->doRun($suite = class
> PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
> $backupStaticAttributes = NULL; protected $name = 'CycleTest'; protected
> $groups = array ('__nogroup__' => array (...)); protected $tests = array
> (0 => class CycleTest { ... }); protected $numTests = -1; protected
> $testCase = TRUE }, $arguments = array ('listGroups' => FALSE, 'loader'
> => class CakeTestLoader { }, 'useDefaultConfiguration' => TRUE,
> 'filter' => FALSE, 'printer' => class CakeHtmlReporter { protected
> $_headerSent = TRUE; public $params = array (...); protected
> $_characterSet = 'utf-8'; protected $column = 0; protected $maxColumn =
> NULL; protected $lastTestFailed = FALSE; protected $numAssertions = 0;
> protected $numTests = -1; protected $numTestsRun = 0; protected
> $numTestsWidth = NULL; protected $colors = FALSE; protected $debug =
> FALSE; protected $verbose = FALSE; protected $autoFlush = FALSE;
> protected $out = NULL; protected $outTarget = NULL; protected
> $printsHTML = FALSE }, 'fixtureManager' => NULL, 'testSuffixes' => array
> (0 => 'Test.php', 1 => '.phpt')))
> /var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteCommand.php:97
> 0.14725655080 7. PHPUnit_TextUI_TestRunner->doRun($suite =
> class PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL;
> protected $backupStaticAttributes = NULL; protected $name = 'CycleTest';
> protected $groups = array ('__nogroup__' => array (...)); protected
> $tests = array (0 => class CycleTest { ... }); protected $numTests = -1;
> protected $testCase = TRUE }, $arguments = array ('listGroups' => FALSE,
> 'loader' => class CakeTestLoader { }, 'useDefaultConfiguration' =>
> TRUE, 'filter' => FALSE, 'printer' => class CakeHtmlReporter { protected
> $_headerSent = TRUE; public $params = array (...); protected
> $_characterSet = 'utf-8'; protected $column = 0; protected $maxColumn =
> NULL; protected $lastTestFailed = FALSE; protected $numAssertions = 0;
> protected $numTests = -1; protected $numTestsRun = 0; protected
> $numTestsWidth = NULL; protected $colors = FALSE; protected $debug =
> FALSE; protected $verbose = FALSE; protected $autoFlush = FALSE;
> protected $out = NULL; protected $outTarget = NULL; protected
> $printsHTML = FALSE }, 'fixtureManager' => NULL, 'testSuffixes' => array
> (0 => 'Test.php', 1 => '.phpt')))
> /var/www/lunaneu/lib/Cake/TestSuite/CakeTestRunner.php:63
> 0.14965798040 8. PHPUnit_Framework_TestSuite->run($result =