PageRenderTime 52ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/cake/tests/fixtures/uuid_tree_fixture.php

https://github.com/hardsshah/bookmarks
PHP | 54 lines | 12 code | 0 blank | 42 comment | 0 complexity | 56b943b7bb6344e8767fb4d0077a120d MD5 | raw file
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * UUID Tree behavior fixture.
  5. *
  6. * PHP versions 4 and 5
  7. *
  8. * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
  9. * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  10. *
  11. * Licensed under The Open Group Test Suite License
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @filesource
  15. * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  16. * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
  17. * @package cake
  18. * @subpackage cake.tests.fixtures
  19. * @since CakePHP(tm) v 1.2.0.7984
  20. * @version $Revision$
  21. * @modifiedby $LastChangedBy$
  22. * @lastmodified $Date$
  23. * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
  24. */
  25. /**
  26. * UuidTreeFixture class
  27. *
  28. * @uses CakeTestFixture
  29. * @package cake
  30. * @subpackage cake.tests.fixtures
  31. */
  32. class UuidTreeFixture extends CakeTestFixture {
  33. /**
  34. * name property
  35. *
  36. * @var string 'UuidTree'
  37. * @access public
  38. */
  39. var $name = 'UuidTree';
  40. /**
  41. * fields property
  42. *
  43. * @var array
  44. * @access public
  45. */
  46. var $fields = array(
  47. 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'),
  48. 'name' => array('type' => 'string','null' => false),
  49. 'parent_id' => array('type' => 'string', 'length' => 36),
  50. 'lft' => array('type' => 'integer','null' => false),
  51. 'rght' => array('type' => 'integer','null' => false)
  52. );
  53. }
  54. ?>