30 lines
783 B
PHP
30 lines
783 B
PHP
<?php
|
|
require_once 'lib/DoctrineTestInit.php';
|
|
|
|
class Orm_Component_TestTest extends Doctrine_OrmTestCase
|
|
{
|
|
protected function setUp()
|
|
{
|
|
$this->loadFixture('forum', 'common_users');
|
|
}
|
|
|
|
public function testTest()
|
|
{
|
|
$this->assertEquals(0, 0);
|
|
}
|
|
|
|
public function testFixture()
|
|
{
|
|
$forumUsers = $this->sharedFixture['connection']->query("FROM ForumUser u");
|
|
$this->assertEquals(2, count($forumUsers));
|
|
$forumUsers[0]->delete();
|
|
unset($forumUsers[0]);
|
|
$this->assertEquals(1, count($forumUsers));
|
|
}
|
|
|
|
public function testFixture2()
|
|
{
|
|
$forumUsers = $this->sharedFixture['connection']->query("FROM ForumUser u");
|
|
$this->assertEquals(2, count($forumUsers));
|
|
}
|
|
} |