UuidTreeFixture.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * UUID Tree behavior fixture.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  8. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice
  12. *
  13. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  15. * @package Cake.Test.Fixture
  16. * @since CakePHP(tm) v 1.2.0.7984
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * UuidTreeFixture class
  21. *
  22. * @uses CakeTestFixture
  23. * @package Cake.Test.Fixture
  24. */
  25. class UuidTreeFixture extends CakeTestFixture {
  26. /**
  27. * name property
  28. *
  29. * @var string 'UuidTree'
  30. */
  31. public $name = 'UuidTree';
  32. /**
  33. * fields property
  34. *
  35. * @var array
  36. */
  37. public $fields = array(
  38. 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'),
  39. 'name' => array('type' => 'string','null' => false),
  40. 'parent_id' => array('type' => 'string', 'length' => 36, 'null' => true),
  41. 'lft' => array('type' => 'integer','null' => false),
  42. 'rght' => array('type' => 'integer','null' => false)
  43. );
  44. }