Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unloading TestPlugin in ShellTest #105

Merged
merged 1 commit into from

2 participants

@tPl0ch

Addition to commit a80d82e. Adding unloading of TestPlugin in ShellTest.

@ADmad ADmad merged commit 26dc6c8 into cakephp:2.0
@rchavik rchavik referenced this pull request from a commit in rchavik/cakephp
@rchavik rchavik Allow saving habtm between db-schemas. Fixes #105
DboSource::buildJoinStatement compares its own database against the
corresponding join Model database.  This is required for habtm cross-db
find() operation to work.

Model::save uses joined Model's datasource instead of its own when
saving HABTM relationship.
2daa0ac
@rchavik rchavik referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rchavik rchavik referenced this pull request from a commit in rchavik/cakephp
@rchavik rchavik Merge branches '#105', '#275' and 'misc' into 2.0-rchavik c2b263a
@rchavik rchavik referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rchavik rchavik referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rchavik rchavik referenced this pull request from a commit in rchavik/cakephp
@rchavik rchavik Allow saving habtm between db-schemas. Fixes #105
DboSource::buildJoinStatement compares its own database against the
corresponding join Model database.  This is required for habtm cross-db
find() operation to work.

Model::save uses joined Model's datasource instead of its own when
saving HABTM relationship.
2de793d
@rchavik rchavik referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rchavik rchavik referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Console/Command/ShellTest.php
View
5 lib/Cake/Test/Case/Console/Command/ShellTest.php
@@ -172,21 +172,22 @@ public function testInitialize() {
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
'models' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS)
), true);
- CakePlugin::load('TestPlugin');
+ CakePlugin::load('TestPlugin');
$this->Shell->uses = array('TestPlugin.TestPluginPost');
$this->Shell->initialize();
$this->assertTrue(isset($this->Shell->TestPluginPost));
$this->assertInstanceOf('TestPluginPost', $this->Shell->TestPluginPost);
$this->assertEqual($this->Shell->modelClass, 'TestPluginPost');
+ CakePlugin::unload('TestPlugin');
$this->Shell->uses = array('Comment');
$this->Shell->initialize();
$this->assertTrue(isset($this->Shell->Comment));
$this->assertInstanceOf('Comment', $this->Shell->Comment);
$this->assertEqual($this->Shell->modelClass, 'Comment');
-
+
App::build();
}
Something went wrong with that request. Please try again.