Permalink
Browse files

removing redundant code

  • Loading branch information...
1 parent 52b8569 commit ab343a1f63a32ed5b920dcf305c7deb0743913eb @dogmatic69 committed Mar 22, 2013
@@ -18,51 +18,6 @@
*/
class InfinitasJobQueue extends InfinitasJobsAppModel {
-/**
- * The display field for select boxes
- *
- * @access public
- * @var string
- */
- public $displayField = 'name';
-
-/**
- * Additional behaviours that are attached to this model
- *
- * @access public
- * @var array
- */
- public $actsAs = array(
- // 'Libs.Feedable',
- // 'Libs.Rateable'
- );
-
-/**
- * How the default ordering on this model is done
- *
- * @access public
- * @var array
- */
- public $order = array(
- );
-
-/**
- * hasOne relations for this model
- *
- * @access public
- * @var array
- */
- public $hasOne = array(
- );
-
-/**
- * belongsTo relations for this model
- *
- * @access public
- * @var array
- */
- public $belongsTo = array(
- );
/**
* hasMany relations for this model
@@ -0,0 +1,19 @@
+<?php
+App::uses('AllTestsBase', 'Test/Lib');
+
+class AllInfinitasJobsTestsTest extends AllTestsBase {
+
+/**
+ * Suite define the tests for this suite
+ *
+ * @return void
+ */
+ public static function suite() {
+ $suite = new CakeTestSuite('All InfinitasJobs test');
+
+ $path = CakePlugin::path('InfinitasJobs') . 'Test' . DS . 'Case' . DS;
+ $suite->addTestDirectoryRecursive($path);
+
+ return $suite;
+ }
+}
@@ -1,80 +1,39 @@
-<?php
- App::import('lib', 'libs.test/AppControllerTest');
-
- class TestInfinitasJobQueuesController extends AppControllerTestCase {
+<?php
+class TestInfinitasJobQueuesController extends CakeTestCase {
- /**
- * @brief Configuration for the test case
- *
- * Loading fixtures:
- *
- * List all the needed fixtures in the do part of the fixture array.
- * In replace you can overwrite fixtures of other plugins by your own.
- *
- * 'fixtures' => array(
- * 'do' => array(
- * 'SomePlugin.SomeModel
- * ),
- * 'replace' => array(
- * 'Core.User' => 'SomePlugin.User
- * )
- * )
- * @var array
- */
- public $setup = array(
- 'controller' => 'InfinitasJobs.InfinitasJobQueues',
- 'fixtures' => array(
- 'do' => array(
- 'InfinitasJob.InfinitasJobQueue',
- 'InfinitasJob.InfinitasJob',
- 'InfinitasJob.InfinitasJobError'
- )
- )
- );
+ /**
+ * @brief Tests admin_index
+ *
+ * @test Enter description here
+ */
+ public function testAdminIndex() {
- /**
- * @brief Contains a list of test methods to run
- *
- * If it is set to false all the methods will run. Otherwise pass in an array
- * with a list of tests to run.
- *
- * @var mixed
- */
- public $tests = false;
+ }
- /**
- * @brief Tests admin_index
- *
- * @test Enter description here
- */
- public function testAdminIndex() {
-
- }
-
- /**
- * @brief Tests admin_view
- *
- * @test Enter description here
- */
- public function testAdminView() {
-
- }
+ /**
+ * @brief Tests admin_view
+ *
+ * @test Enter description here
+ */
+ public function testAdminView() {
+
+ }
- /**
- * @brief Tests admin_add
- *
- * @test Enter description here
- */
- public function testAdminAdd() {
-
- }
+ /**
+ * @brief Tests admin_add
+ *
+ * @test Enter description here
+ */
+ public function testAdminAdd() {
+
+ }
- /**
- * @brief Tests admin_edit
- *
- * @test Enter description here
- */
- public function testAdminEdit() {
-
- }
- }
+ /**
+ * @brief Tests admin_edit
+ *
+ * @test Enter description here
+ */
+ public function testAdminEdit() {
+
+ }
+}
@@ -1,78 +1,39 @@
<?php
- App::import('lib', 'libs.test/AppControllerTest');
-
- class TestInfinitasJobsController extends AppControllerTestCase {
+class TestInfinitasJobsController extends CakeTestCase {
- /**
- * @brief Configuration for the test case
- *
- * Loading fixtures:
- *
- * List all the needed fixtures in the do part of the fixture array.
- * In replace you can overwrite fixtures of other plugins by your own.
- *
- * 'fixtures' => array(
- * 'do' => array(
- * 'SomePlugin.SomeModel
- * ),
- * 'replace' => array(
- * 'Core.User' => 'SomePlugin.User
- * )
- * )
- * @var array
- */
- public $setup = array(
- 'controller' => 'InfinitasJobs.InfinitasJobs',
- 'fixtures' => array(
- 'do' => array(
- 'InfinitasJob.InfinitasJob'
- )
- )
- );
+ /**
+ * @brief Tests admin_index
+ *
+ * @test Enter description here
+ */
+ public function testAdminIndex() {
- /**
- * @brief Contains a list of test methods to run
- *
- * If it is set to false all the methods will run. Otherwise pass in an array
- * with a list of tests to run.
- *
- * @var mixed
- */
- public $tests = false;
+ }
- /**
- * @brief Tests admin_index
- *
- * @test Enter description here
- */
- public function testAdminIndex() {
-
- }
-
- /**
- * @brief Tests admin_view
- *
- * @test Enter description here
- */
- public function testAdminView() {
-
- }
+ /**
+ * @brief Tests admin_view
+ *
+ * @test Enter description here
+ */
+ public function testAdminView() {
+
+ }
- /**
- * @brief Tests admin_add
- *
- * @test Enter description here
- */
- public function testAdminAdd() {
-
- }
+ /**
+ * @brief Tests admin_add
+ *
+ * @test Enter description here
+ */
+ public function testAdminAdd() {
+
+ }
- /**
- * @brief Tests admin_edit
- *
- * @test Enter description here
- */
- public function testAdminEdit() {
-
- }
- }
+ /**
+ * @brief Tests admin_edit
+ *
+ * @test Enter description here
+ */
+ public function testAdminEdit() {
+
+ }
+}

0 comments on commit ab343a1

Please sign in to comment.