Skip to content

Commit

Permalink
Adding App::import() tests for plugin datasources.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperras committed Sep 24, 2009
1 parent 33117ee commit 98bdaaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cake/tests/cases/libs/configure.test.php
Expand Up @@ -487,6 +487,10 @@ function testClassLoading() {

$file = App::import('Model', 'NonExistingModel');
$this->assertFalse($file);

$file = App::import('Datasource', 'DboSource');
$this->assertTrue($file);
$this->assertTrue(class_exists('DboSource'));
}

App::build(array(
Expand All @@ -502,6 +506,10 @@ function testClassLoading() {
$this->assertTrue($result);
$this->assertTrue(class_exists('OtherHelperHelper'));

$result = App::import('Datasource', 'TestPlugin.TestSource');
$this->assertTrue($result);
$this->assertTrue(class_exists('TestSource'));

App::build();
}

Expand Down

0 comments on commit 98bdaaf

Please sign in to comment.