Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Feb 27, 2016
1 parent 0e9800e commit ed475a6
Show file tree
Hide file tree
Showing 31 changed files with 158 additions and 16 deletions.
6 changes: 6 additions & 0 deletions tests/Fixture/JsonableCommentsFixture.php
Expand Up @@ -6,6 +6,9 @@

class JsonableCommentsFixture extends TestFixture {

/**
* @var array
*/
public $fields = [
'id' => ['type' => 'integer'],
'comment' => ['type' => 'string', 'length' => 255, 'null' => false],
Expand All @@ -15,6 +18,9 @@ class JsonableCommentsFixture extends TestFixture {
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
];

/**
* @var array
*/
public $records = [
];

Expand Down
6 changes: 6 additions & 0 deletions tests/Fixture/StringCommentsFixture.php
Expand Up @@ -6,6 +6,9 @@

class StringCommentsFixture extends TestFixture {

/**
* @var array
*/
public $fields = [
'id' => ['type' => 'integer'],
'comment' => ['type' => 'string', 'length' => 255, 'null' => false],
Expand All @@ -14,6 +17,9 @@ class StringCommentsFixture extends TestFixture {
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
];

/**
* @var array
*/
public $records = [
];

Expand Down
16 changes: 14 additions & 2 deletions tests/TestApp/Controller/Component/TestComponent.php
Expand Up @@ -7,16 +7,28 @@

class TestComponent extends Component {

public $Controller;

/**
* @var bool
*/
public $isInit = false;

/**
* @var bool
*/
public $isStartup = false;

/**
* @param \Cake\Event\Event $event
* @return void
*/
public function beforeFilter(Event $event) {
$this->isInit = true;
}

/**
* @param \Cake\Event\Event $event
* @return void
*/
public function startup(Event $event) {
$this->isStartup = true;
}
Expand Down
4 changes: 4 additions & 0 deletions tests/TestApp/Model/Entity/BitmaskedComment.php
Expand Up @@ -6,6 +6,10 @@

class BitmaskedComment extends Entity {

/**
* @param mixed|null $value
* @return mixed
*/
public static function statuses($value = null) {
$options = [
static::STATUS_ACTIVE => __d('tools', 'Active'),
Expand Down
3 changes: 3 additions & 0 deletions tests/TestApp/Model/Table/BitmaskedCommentsTable.php
Expand Up @@ -6,6 +6,9 @@

class BitmaskedCommentsTable extends Table {

/**
* @var array
*/
public $validate = [
'status' => [
'notBlank' => [
Expand Down
3 changes: 3 additions & 0 deletions tests/TestApp/Model/Table/JsonableCommentsTable.php
Expand Up @@ -6,6 +6,9 @@

class JsonableCommentsTable extends Table {

/**
* @var array
*/
public $validate = [
];

Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase/Controller/Component/CommonComponentTest.php
Expand Up @@ -171,6 +171,9 @@ public function testAutoRedirectReferer() {
*/
class CommonComponentTestController extends Controller {

/**
* @var array
*/
public $components = ['Tools.Common'];

}
9 changes: 9 additions & 0 deletions tests/TestCase/Controller/Component/FlashComponentTest.php
Expand Up @@ -121,10 +121,19 @@ public function testAjax() {
*/
class FlashComponentTestController extends Controller {

/**
* @var array
*/
public $components = ['Tools.Flash'];

/**
* @var bool
*/
public $failed = false;

/**
* @var array
*/
public $testHeaders = [];

public function fail() {
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase/Controller/Component/MobileComponentTest.php
Expand Up @@ -17,6 +17,9 @@
*/
class MobileComponentTest extends TestCase {

/**
* @var array
*/
public $fixtures = ['core.sessions'];

/**
Expand Down
12 changes: 12 additions & 0 deletions tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -16,10 +16,19 @@
*/
class ControllerTest extends TestCase {

/**
* @var array
*/
public $fixtures = ['plugin.Tools.ToolsUsers'];

/**
* @var Cake\Controller\Controller
*/
public $Controller;

/**
* @return void
*/
public function setUp() {
parent::setUp();

Expand All @@ -29,6 +38,9 @@ public function setUp() {
$this->Controller->startupProcess();
}

/**
* @return void
*/
public function tearDown() {
parent::tearDown();

Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Form/ContactFormTest.php
Expand Up @@ -19,11 +19,17 @@

class ContactFormTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'core.posts', 'core.authors',
'plugin.tools.tools_users', 'plugin.tools.roles',
];

/**
* @var \Tools\Form\ContactForm
*/
public $Form;

/**
Expand Down
9 changes: 6 additions & 3 deletions tests/TestCase/HtmlDom/HtmlDomTest.php
Expand Up @@ -8,7 +8,10 @@

class HtmlDomTest extends TestCase {

public $HtmlDom = null;
/**
* @var \Tools\HtmlDom\HtmlDom
*/
public $HtmlDom;

public function setUp() {
parent::setUp();
Expand All @@ -22,8 +25,8 @@ public function setUp() {
* @return void
*/
public function testBasics() {
$html = new HtmlDom('<div id="hello">Hello</div><div id="world">World</div>');
$result = $html->find('div', 1)->innertext;
$this->HtmlDom = new HtmlDom('<div id="hello">Hello</div><div id="world">World</div>');
$result = $this->HtmlDom->find('div', 1)->innertext;
$this->assertSame('World', $result);
}

Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Behavior/BitmaskedBehaviorTest.php
Expand Up @@ -12,10 +12,16 @@

class BitmaskedBehaviorTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'plugin.tools.bitmasked_comments'
];

/**
* @var \Tools\Model\Table\Table
*/
public $Comments;

public function setUp() {
Expand Down
9 changes: 9 additions & 0 deletions tests/TestCase/Model/Behavior/ConfirmableBehaviorTest.php
Expand Up @@ -8,10 +8,19 @@

class ConfirmableBehaviorTest extends TestCase {

/**
* @var \Tools\Model\Behavior\ConfirmableBehavior
*/
public $ConfirmableBehavior;

/**
* @var array
*/
public $fixtures = ['plugin.Tools.SluggedArticles'];

/**
* @return void
*/
public function setUp() {
parent::setUp();
}
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Behavior/JsonableBehaviorTest.php
Expand Up @@ -9,10 +9,16 @@

class JsonableBehaviorTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'plugin.tools.jsonable_comments'
];

/**
* @var \Tools\Model\Table\Table
*/
public $Comments;

public function setUp() {
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Behavior/NeighborBehaviorTest.php
Expand Up @@ -10,8 +10,14 @@

class NeighborBehaviorTest extends TestCase {

/**
* @var \Tools\Model\Table\Table
*/
public $Table;

/**
* @var array
*/
public $fixtures = ['plugin.tools.stories'];

public function setUp() {
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase/Model/Behavior/PasswordableBehaviorTest.php
Expand Up @@ -17,6 +17,9 @@

class PasswordableBehaviorTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'plugin.tools.tools_users', 'plugin.tools.roles',
];
Expand Down
9 changes: 9 additions & 0 deletions tests/TestCase/Model/Behavior/ResetBehaviorTest.php
Expand Up @@ -10,10 +10,19 @@

class ResetBehaviorTest extends TestCase {

/**
* @var \Tools\Model\Behavior\ResetBehavior
*/
public $ResetBehavior;

/**
* @var \Tools\Model\Table\Table
*/
public $Table;

/**
* @var array
*/
public $fixtures = ['plugin.tools.reset_comments'];

public function setUp() {
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Behavior/StringBehaviorTest.php
Expand Up @@ -9,10 +9,16 @@

class StringBehaviorTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'plugin.tools.string_comments'
];

/**
* @var \Tools\Model\Table\Table
*/
public $Comments;

public function setUp() {
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Entity/EntityTest.php
Expand Up @@ -11,10 +11,16 @@

class PasswordableBehaviorTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'plugin.tools.tools_users', 'plugin.tools.roles',
];

/**
* @var \Tools\Model\Table\Table;
*/
public $Users;

/**
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/Model/Table/TableTest.php
Expand Up @@ -19,11 +19,17 @@

class TableTest extends TestCase {

/**
* @var array
*/
public $fixtures = [
'core.posts', 'core.authors',
'plugin.tools.tools_users', 'plugin.tools.roles',
];

/**
* @var \Tools\Model\Table\Table;
*/
public $Users;

/**
Expand Down
10 changes: 8 additions & 2 deletions tests/TestCase/Model/Table/TokensTableTest.php
Expand Up @@ -8,8 +8,14 @@

class TokensTableTest extends TestCase {

public $Tokens = null;

/**
* @var \Tools\Model\Table\TokensTable;
*/
public $Tokens;

/**
* @var array
*/
public $fixtures = ['plugin.Tools.Tokens'];

public function setUp() {
Expand Down
2 changes: 0 additions & 2 deletions tests/TestCase/TestSuite/IntegrationTestCaseTest.php
Expand Up @@ -6,8 +6,6 @@

class IntegrationTestCaseTest extends IntegrationTestCase {

public $TestCase;

public function setUp() {
parent::setUp();
}
Expand Down
2 changes: 0 additions & 2 deletions tests/TestCase/TestSuite/TestCaseTest.php
Expand Up @@ -6,8 +6,6 @@

class TestCaseTest extends TestCase {

public $TestCase;

public function setUp() {
parent::setUp();
}
Expand Down

0 comments on commit ed475a6

Please sign in to comment.