UnconventionalTreeFixture.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Unconventional Tree behavior class test 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.7879
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * UnconventionalTreeFixture class
  21. *
  22. * Like Number tree, but doesn't use the default values for lft and rght or parent_id
  23. *
  24. * @uses CakeTestFixture
  25. * @package Cake.Test.Fixture
  26. */
  27. class UnconventionalTreeFixture extends CakeTestFixture {
  28. /**
  29. * name property
  30. *
  31. * @var string 'FlagTree'
  32. */
  33. public $name = 'UnconventionalTree';
  34. /**
  35. * fields property
  36. *
  37. * @var array
  38. */
  39. public $fields = array(
  40. 'id' => array('type' => 'integer','key' => 'primary'),
  41. 'name' => array('type' => 'string','null' => false),
  42. 'join' => 'integer',
  43. 'left' => array('type' => 'integer','null' => false),
  44. 'right' => array('type' => 'integer','null' => false),
  45. );
  46. }