Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:burzum/ratings into develop
Browse files Browse the repository at this point in the history
Conflicts:
	Controller/Component/RatingsComponent.php
	Test/Case/Component/RatingsComponentTest.php
	Test/Case/Helper/RatingHelperTest.php
	View/Helper/RatingHelper.php
	readme.md
  • Loading branch information
Florian Krämer committed Apr 13, 2014
2 parents 7f766ce + 0b00204 commit 09c9501
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 36 deletions.
7 changes: 0 additions & 7 deletions Config/Schema/schema.php
Expand Up @@ -24,13 +24,6 @@

class RatingsSchema extends CakeSchema {

/**
* Schema name
*
* @var string
* @access public
*/
public $name = 'Ratings';

/**
* Before callback
Expand Down
1 change: 1 addition & 0 deletions Controller/RatingsAppController.php
Expand Up @@ -8,6 +8,7 @@
* @copyright Copyright 2010 - 1013 - 1013, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('AppController', 'Controller');

/**
* CakePHP Ratings Plugin
Expand Down
1 change: 1 addition & 0 deletions Model/Behavior/RatableBehavior.php
Expand Up @@ -8,6 +8,7 @@
* @copyright Copyright 2010 - 1013 - 1013, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('ModelBehavior', 'Model');

/**
* CakePHP Ratings Plugin
Expand Down
8 changes: 1 addition & 7 deletions Model/Rating.php
Expand Up @@ -8,6 +8,7 @@
* @copyright Copyright 2010 - 1013 - 1013, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('RatingsAppModel', 'Ratings.Model');

/**
* CakePHP Ratings Plugin
Expand All @@ -19,13 +20,6 @@
*/
class Rating extends RatingsAppModel {

/**
* Name
*
* @var string $name
*/
public $name = 'Rating';

/**
* Validation rules
*
Expand Down
1 change: 1 addition & 0 deletions Model/RatingsAppModel.php
Expand Up @@ -8,6 +8,7 @@
* @copyright Copyright 2010 - 1013 - 1013, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('AppModel', 'Model');

/**
* CakePHP Ratings Plugin
Expand Down
16 changes: 16 additions & 0 deletions Test/Case/AllTestsTest.php
@@ -0,0 +1,16 @@
<?php

class AllTestsTest extends PHPUnit_Framework_TestSuite {

/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All Tests');
$suite->addTestDirectoryRecursive(App::pluginPath('Ratings') . 'Test' . DS . 'Case' . DS);

return $suite;
}
}
6 changes: 2 additions & 4 deletions Test/Case/Model/RatingTest.php
Expand Up @@ -17,9 +17,7 @@
* @package ratings
* @subpackage ratings.tests.cases.models
*/

App::uses('Model', 'Model');
class RatingTestCase extends CakeTestCase {
class RatingTest extends CakeTestCase {

/**
* Rating Model
Expand Down Expand Up @@ -52,7 +50,7 @@ class RatingTestCase extends CakeTestCase {
* @return void
*/
public function startTest($method) {
Configure::write('App.UserClass', null);
Configure::write('App.UserClass', null);
parent::startTest($method);
$this->Rating = ClassRegistry::init('Ratings.Rating');
}
Expand Down
8 changes: 0 additions & 8 deletions Test/Fixture/ArticleFixture.php
Expand Up @@ -19,14 +19,6 @@
*/
class ArticleFixture extends CakeTestFixture {

/**
* name property
*
* @var string 'AnotherArticle'
* @access public
*/
public $name = 'Article';

/**
* fields property
*
Expand Down
8 changes: 0 additions & 8 deletions Test/Fixture/PostFixture.php
Expand Up @@ -19,14 +19,6 @@
*/
class PostFixture extends CakeTestFixture {

/**
* name property
*
* @var string 'AnotherPost'
* @access public
*/
public $name = 'Post';

/**
* fields property
*
Expand Down
4 changes: 2 additions & 2 deletions View/Layouts/json/default.ctp
Expand Up @@ -9,7 +9,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
?>
<?php
<?php
Configure::write('debug', 0);
$status = (isset($status)) ? $status : 'success';
$status = (isset($status)) ? $status : 'success';
?>{ "status" : "<?php echo $status?>", "data" : <?php echo $content_for_layout; ?> }

0 comments on commit 09c9501

Please sign in to comment.