/Menus/Test/Fixture/LinkFixture.php

https://github.com/kareypowell/croogo · PHP · 266 lines · 262 code · 4 blank · 0 comment · 0 complexity · 47b221bf6e09b82b7b4afae24e49f4b9 MD5 · raw file

  1. <?php
  2. class LinkFixture extends CroogoTestFixture {
  3. public $name = 'Link';
  4. public $fields = array(
  5. 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 20, 'key' => 'primary'),
  6. 'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 20),
  7. 'menu_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 20),
  8. 'title' => array('type' => 'string', 'null' => false, 'default' => null),
  9. 'class' => array('type' => 'string', 'null' => false, 'default' => null),
  10. 'description' => array('type' => 'text', 'null' => true, 'default' => null),
  11. 'link' => array('type' => 'string', 'null' => false, 'default' => null),
  12. 'target' => array('type' => 'string', 'null' => true, 'default' => null),
  13. 'rel' => array('type' => 'string', 'null' => true, 'default' => null),
  14. 'status' => array('type' => 'integer', 'length' => 1, 'null' => false, 'default' => '1'),
  15. 'lft' => array('type' => 'integer', 'null' => true, 'default' => null),
  16. 'rght' => array('type' => 'integer', 'null' => true, 'default' => null),
  17. 'visibility_roles' => array('type' => 'text', 'null' => true, 'default' => null),
  18. 'params' => array('type' => 'text', 'null' => true, 'default' => null),
  19. 'publish_start' => array('type' => 'datetime', 'null' => true, 'default' => null),
  20. 'publish_end' => array('type' => 'datetime', 'null' => true, 'default' => null),
  21. 'updated' => array('type' => 'datetime', 'null' => false, 'default' => null),
  22. 'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
  23. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  24. 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDB')
  25. );
  26. public $records = array(
  27. array(
  28. 'id' => 5,
  29. 'parent_id' => null,
  30. 'menu_id' => 4,
  31. 'title' => 'About',
  32. 'class' => 'about',
  33. 'description' => '',
  34. 'link' => 'controller:nodes/action:view/type:page/slug:about',
  35. 'target' => '',
  36. 'rel' => '',
  37. 'status' => 1,
  38. 'lft' => 3,
  39. 'rght' => 4,
  40. 'visibility_roles' => '',
  41. 'params' => '',
  42. 'updated' => '2009-10-06 23:14:21',
  43. 'created' => '2009-08-19 12:23:33'
  44. ),
  45. array(
  46. 'id' => 6,
  47. 'parent_id' => null,
  48. 'menu_id' => 4,
  49. 'title' => 'Contact',
  50. 'class' => 'contact',
  51. 'description' => '',
  52. 'link' => 'controller:contacts/action:view/contact',
  53. 'target' => '',
  54. 'rel' => '',
  55. 'status' => 1,
  56. 'lft' => 5,
  57. 'rght' => 6,
  58. 'visibility_roles' => '',
  59. 'params' => '',
  60. 'updated' => '2009-10-06 23:14:45',
  61. 'created' => '2009-08-19 12:34:56'
  62. ),
  63. array(
  64. 'id' => 7,
  65. 'parent_id' => null,
  66. 'menu_id' => 3,
  67. 'title' => 'Home',
  68. 'class' => 'home',
  69. 'description' => '',
  70. 'link' => '/',
  71. 'target' => '',
  72. 'rel' => '',
  73. 'status' => 1,
  74. 'lft' => 1,
  75. 'rght' => 2,
  76. 'visibility_roles' => '',
  77. 'params' => '',
  78. 'updated' => '2009-10-06 21:17:06',
  79. 'created' => '2009-09-06 21:32:54'
  80. ),
  81. array(
  82. 'id' => 8,
  83. 'parent_id' => null,
  84. 'menu_id' => 3,
  85. 'title' => 'About',
  86. 'class' => 'about',
  87. 'description' => '',
  88. 'link' => '/about',
  89. 'target' => '',
  90. 'rel' => '',
  91. 'status' => 1,
  92. 'lft' => 3,
  93. 'rght' => 6,
  94. 'visibility_roles' => '',
  95. 'params' => '',
  96. 'updated' => '2009-09-12 03:45:53',
  97. 'created' => '2009-09-06 21:34:57'
  98. ),
  99. array(
  100. 'id' => 9,
  101. 'parent_id' => 8,
  102. 'menu_id' => 3,
  103. 'title' => 'Child link',
  104. 'class' => 'child-link',
  105. 'description' => '',
  106. 'link' => '#',
  107. 'target' => '',
  108. 'rel' => '',
  109. 'status' => 0,
  110. 'lft' => 4,
  111. 'rght' => 5,
  112. 'visibility_roles' => '',
  113. 'params' => '',
  114. 'updated' => '2009-10-06 23:13:06',
  115. 'created' => '2009-09-12 03:52:23'
  116. ),
  117. array(
  118. 'id' => 10,
  119. 'parent_id' => null,
  120. 'menu_id' => 5,
  121. 'title' => 'Site Admin',
  122. 'class' => 'site-admin',
  123. 'description' => '',
  124. 'link' => '/admin',
  125. 'target' => '',
  126. 'rel' => '',
  127. 'status' => 1,
  128. 'lft' => 1,
  129. 'rght' => 2,
  130. 'visibility_roles' => '',
  131. 'params' => '',
  132. 'updated' => '2009-09-12 06:34:09',
  133. 'created' => '2009-09-12 06:34:09'
  134. ),
  135. array(
  136. 'id' => 11,
  137. 'parent_id' => null,
  138. 'menu_id' => 5,
  139. 'title' => 'Log out',
  140. 'class' => 'log-out',
  141. 'description' => '',
  142. 'link' => '/users/logout',
  143. 'target' => '',
  144. 'rel' => '',
  145. 'status' => 1,
  146. 'lft' => 7,
  147. 'rght' => 8,
  148. 'visibility_roles' => '[\"1\",\"2\"]',
  149. 'params' => '',
  150. 'updated' => '2009-09-12 06:35:22',
  151. 'created' => '2009-09-12 06:34:41'
  152. ),
  153. array(
  154. 'id' => 12,
  155. 'parent_id' => null,
  156. 'menu_id' => 6,
  157. 'title' => 'Croogo',
  158. 'class' => 'croogo',
  159. 'description' => '',
  160. 'link' => 'http://www.croogo.org',
  161. 'target' => '',
  162. 'rel' => '',
  163. 'status' => 1,
  164. 'lft' => 3,
  165. 'rght' => 4,
  166. 'visibility_roles' => '',
  167. 'params' => '',
  168. 'updated' => '2009-09-12 23:31:59',
  169. 'created' => '2009-09-12 23:31:59'
  170. ),
  171. array(
  172. 'id' => 14,
  173. 'parent_id' => null,
  174. 'menu_id' => 6,
  175. 'title' => 'CakePHP',
  176. 'class' => 'cakephp',
  177. 'description' => '',
  178. 'link' => 'http://www.cakephp.org',
  179. 'target' => '',
  180. 'rel' => '',
  181. 'status' => 1,
  182. 'lft' => 1,
  183. 'rght' => 2,
  184. 'visibility_roles' => '',
  185. 'params' => '',
  186. 'updated' => '2009-10-07 03:25:25',
  187. 'created' => '2009-09-12 23:38:43'
  188. ),
  189. array(
  190. 'id' => 15,
  191. 'parent_id' => null,
  192. 'menu_id' => 3,
  193. 'title' => 'Contact',
  194. 'class' => 'contact',
  195. 'description' => '',
  196. 'link' => '/controller:contacts/action:view/contact',
  197. 'target' => '',
  198. 'rel' => '',
  199. 'status' => 1,
  200. 'lft' => 7,
  201. 'rght' => 8,
  202. 'visibility_roles' => '',
  203. 'params' => '',
  204. 'updated' => '2009-09-16 07:54:13',
  205. 'created' => '2009-09-16 07:53:33'
  206. ),
  207. array(
  208. 'id' => 16,
  209. 'parent_id' => null,
  210. 'menu_id' => 5,
  211. 'title' => 'Entries (RSS)',
  212. 'class' => 'entries-rss',
  213. 'description' => '',
  214. 'link' => '/nodes/promoted.rss',
  215. 'target' => '',
  216. 'rel' => '',
  217. 'status' => 1,
  218. 'lft' => 3,
  219. 'rght' => 4,
  220. 'visibility_roles' => '',
  221. 'params' => '',
  222. 'updated' => '2009-10-27 17:46:22',
  223. 'created' => '2009-10-27 17:46:22'
  224. ),
  225. array(
  226. 'id' => 17,
  227. 'parent_id' => null,
  228. 'menu_id' => 5,
  229. 'title' => 'Comments (RSS)',
  230. 'class' => 'comments-rss',
  231. 'description' => '',
  232. 'link' => '/comments.rss',
  233. 'target' => '',
  234. 'rel' => '',
  235. 'status' => 1,
  236. 'lft' => 5,
  237. 'rght' => 6,
  238. 'visibility_roles' => '',
  239. 'params' => '',
  240. 'updated' => '2009-10-27 17:46:54',
  241. 'created' => '2009-10-27 17:46:54'
  242. ),
  243. array(
  244. 'id' => 18,
  245. 'parent_id' => null,
  246. 'menu_id' => 4,
  247. 'title' => 'Public Link Only',
  248. 'class' => 'public-link-only',
  249. 'description' => '',
  250. 'link' => '/public-link-only',
  251. 'target' => '',
  252. 'rel' => '',
  253. 'status' => 1,
  254. 'lft' => 7,
  255. 'rght' => 8,
  256. 'visibility_roles' => '["3"]',
  257. 'params' => '',
  258. 'updated' => '2009-10-27 17:46:54',
  259. 'created' => '2009-10-27 17:46:54'
  260. ),
  261. );
  262. }