Skip to content
Browse files

move some (potentially) old tests to correct location and create a be…

…havior test for plate (might be old code)
  • Loading branch information...
1 parent 5711a7e commit 9760f26b5a3501cb85050a806a7152029aba0b07 @sams committed Apr 17, 2012
View
7 Test/Case/Console/Command/PlateBakeTest.php
@@ -0,0 +1,7 @@
+<?php
+
+require_once "plate_shell.inc.php";
+
+class PlateBakeTest extends PlateShellTestCase {
+}
+?>
View
8 Test/Case/Console/Command/PlateSubmodulesTest.php
@@ -0,0 +1,8 @@
+<?php
+ //
+
+require_once "plate_shell.inc.php";
+
+class PlateSubmodulesTest extends PlateShellTestCase {
+}
+?>
View
11 Test/Case/Console/Command/plate_shell.inc.php
@@ -0,0 +1,11 @@
+<?php
+
+
+
+/**
+ * class PlateShellTestCase
+ */
+
+class PlateShellTestCase extends CakeTestCase {
+}
+?>
View
30 Test/Case/Model/Behavior/PlateBehaviorTest.php
@@ -0,0 +1,30 @@
+<?php
+App::uses('Plate', 'BakingPlate.Model/Behavior');
+
+/**
+ * Plate Test Case
+ *
+ */
+class PlateTestCase extends CakeTestCase {
+/**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp() {
+ parent::setUp();
+ $this->Plate = new Plate();
+ }
+
+/**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown() {
+ unset($this->Plate);
+
+ parent::tearDown();
+ }
+
+}
View
27 Test/Case/View/AutoHelperTest.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * AutoHelperView
+ *
+ * Provides automatic loading, or "lazy loading" of heleprs for the `View`
+ * class.
+ *
+ * If a helper needs to be called prior to rendering or if it has any
+ * settings you should keep it in your controller's `$helpers` array.
+ *
+ * @author Joe Beeson <jbeeson@gmail.com>
+ */
+App::import('Core', array('View', 'Controller'));
+App::import('Helper', 'Cache');
+App::import('View', array('AutoHelper', 'ThemedAutoHelper'));
+
+Mock::generate('Helper', 'CallbackMockHelper');
+Mock::generate('CacheHelper', 'ViewTestMockCacheHelper');
+
+if (!class_exists('ErrorHandler')) {
+ App::import('Core', array('Error'));
+}
+
+class AutoHelperTest extends CakeTestCase {
+
+
+}
View
26 Test/Case/View/ThemedAutoHelperTest.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * AutoHelperView
+ *
+ * Provides automatic loading, or "lazy loading" of heleprs for the `View`
+ * class.
+ *
+ * If a helper needs to be called prior to rendering or if it has any
+ * settings you should keep it in your controller's `$helpers` array.
+ *
+ * @author Joe Beeson <jbeeson@gmail.com>
+ */
+App::import('Core', array('View', 'Controller'));
+App::import('Helper', 'Cache');
+App::import('View', array('AutoHelper', 'ThemedAutoHelper'));
+
+Mock::generate('Helper', 'CallbackMockHelper');
+Mock::generate('CacheHelper', 'ViewTestMockCacheHelper');
+
+if (!class_exists('ErrorHandler')) {
+ App::import('Core', array('Error'));
+}
+
+class ThemedAutoHelperTest extends CakeTestCase {
+
+}

0 comments on commit 9760f26

Please sign in to comment.
Something went wrong with that request. Please try again.