. */ /** * Doctrine_NestedSet_LoadInSetUp_TestCase * * @package Doctrine * @author Konsta Vesterinen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ */ class Doctrine_NestedSet_LoadInSetUp_TestCase extends Doctrine_UnitTestCase { public function prepareTables() { $this->tables[] = 'CategoryNestedSet'; parent::prepareTables(); } public function testNestedSet() { $category = new CategoryNestedSet(); if ( ! $category->getTable()->hasColumn('lft')) { $this->fail(); } if ( ! $category->getTable()->hasColumn('rgt')) { $this->fail(); } if ( ! $category->getTable()->hasColumn('level')) { $this->fail(); } } }