shama/croogo — pull request #2 by rchavik (2012-03-19 16:27:10+00:00)
Title: Dev plugin install

shama,

- some squash and rebasing.
- include your new tests in AllTests
- a bugfix for 1.4: 64a52e11882905886a6f6d1f95179d8e656a2c19

there seem to be a problem when running AllTests after adding your new files:

```
PHPUnit 3.6.10 by Sebastian Bergmann.

............................................................... 63 / 111 ( 56%)
.........................................Plugin deactivated successfully.
ETheme activated successfully.
FDownloading extension...
Installing extension...
Extension installed and activated.
.Downloading extension...
Installing extension...
Extension installed and activated.
....

Time: 32 seconds, Memory: 61.00Mb

There was 1 error:

1) ExtShellTest::testPlugin
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'menu_id' cannot be null

/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Model/Datasource/DboSource.php:437
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Model/Datasource/DboSource.php:403
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Model/Datasource/DboSource.php:985
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Model/Model.php:1703
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Plugin/Example/Config/ExampleActivation.php:48
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Console/Command/ExtShell.php:147
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Console/Command/ExtShell.php:94
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Test/Case/Console/Command/ExtShellTest.php:65
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestCase.php:78
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestRunner.php:57
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestSuiteCommand.php:111
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Command/TestShell.php:274
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Command/TestsuiteShell.php:98
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Shell.php:389
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/ShellDispatcher.php:177
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/ShellDispatcher.php:69
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Console/cake.php:41

--

There was 1 failure:

1) ExtShellTest::testTheme
Failed asserting that null matches expected 'minimal'.

/mnt/user-data/users/rachman/work/personal/deploy/croogo/Test/Case/Console/Command/ExtShellTest.php:84
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestCase.php:78
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestRunner.php:57
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/TestSuite/CakeTestSuiteCommand.php:111
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Command/TestShell.php:274
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Command/TestsuiteShell.php:98
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/Shell.php:389
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/ShellDispatcher.php:177
/mnt/user-data/users/rachman/work/core/cake_2.0/lib/Cake/Console/ShellDispatcher.php:69
/mnt/user-data/users/rachman/work/personal/deploy/croogo/Console/cake.php:41

FAILURES!
Tests: 111, Assertions: 251, Failures: 1, Errors: 1.
```

I haven't figured it out yet, but perhaps you'll be able to find the fix