Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing instanceof not appearing within condition.
- Loading branch information
1 parent
5eb8653
commit 39d110e
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace foo\tests\integration\data; | ||
|
||
use foo\data\Database; | ||
use foo\data\Connections; | ||
use foo\data\model\Query; | ||
use foo\tests\mocks\data\source\Images; | ||
use foo\tests\mocks\data\source\Galleries; | ||
|
||
class DatabaseTest extends \lithium\test\Integration { | ||
|
||
public $gallery = array( | ||
'name' => 'Foo Gallery' | ||
); | ||
|
||
public function skip() { | ||
$isDatabase = Connections::get('test') instanceof Database; | ||
} | ||
|
||
public function testCreateData() { | ||
$gallery = Galleries::create($this->gallery); | ||
} | ||
|
||
public function testManyToOne() { | ||
$query = new Query(); | ||
$images = Images::find('all', $opts + array('with' => 'Galleries'))->data(); | ||
} | ||
} | ||
|
||
?> |