Skip to content

Commit 1527cce

Browse files
author
euromark
committed
doc block updates and timeline helper
1 parent 11d6430 commit 1527cce

17 files changed

+328
-28
lines changed

Lib/Cache/Engine/MemcachedEngine.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*
1414
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
1515
* @link http://cakephp.org CakePHP(tm) Project
16-
* @package Cake.Cache.Engine
1716
* @since CakePHP(tm) v 1.2.0.4933
1817
* @license http://www.opensource.org/licenses/mit-license.php MIT License
1918
*/
@@ -31,7 +30,6 @@
3130
* (if memcached extension compiled with --enable-igbinary).
3231
* Compressed keys can also be incremented/decremented.
3332
*
34-
* @package Cake.Cache.Engine
3533
*/
3634
class MemcachedEngine extends CacheEngine {
3735

Test/Case/Controller/Component/Auth/DirectAuthenticateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/**
1515
* Test case for DirectAuthentication
1616
*
17-
* @package Cake.Test.Case.Controller.Component.Auth
1817
*/
1918
class DirectAuthenticateTest extends CakeTestCase {
2019

Test/Case/Controller/Component/Auth/TinyAuthorizeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
/**
1414
* Test case for DirectAuthentication
1515
*
16-
* @package Test.Case.Controller.Component.Auth
1716
*/
1817
class TinyAuthorizeTest extends MyCakeTestCase {
1918

Test/Case/Controller/Component/AutoLoginComponentTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
/**
77
* Short description for class.
88
*
9-
* @package cake.tests
10-
* @subpackage cake.tests.cases.libs.controller.components
119
*/
1210
class AutoLoginComponentTest extends CakeTestCase {
1311

@@ -98,8 +96,6 @@ public function testLogin() {
9896
/**
9997
* Short description for class.
10098
*
101-
* @package cake.tests
102-
* @subpackage cake.tests.cases.libs.controller.components
10399
*/
104100
class AutoLoginTestController extends Controller {
105101
/**

Test/Case/Model/Behavior/SluggedBehaviorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18226,8 +18226,6 @@ public function testDuplicateWithLengthRestriction() {
1822618226
* MessageSlugged class
1822718227
*
1822818228
* @uses CakeTestModel
18229-
* @package mi
18230-
* @subpackage mi.tests.cases.behaviors
1823118229
*/
1823218230
class MessageSlugged extends CakeTestModel {
1823318231

Test/Case/View/Helper/DatetimeHelperTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
/**
88
* Datetime Test Case
99
*
10-
* @package cake.tests
11-
* @subpackage cake.tests.cases.libs.view.helpers
1210
*/
1311
class DatetimeHelperTest extends MyCakeTestCase {
1412

Test/Case/View/Helper/FormExtHelperTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ public function testNormalize() {
194194
/**
195195
* Contact class
196196
*
197-
* @package cake
198-
* @package Cake.Test.Case.View.Helper
199197
*/
200198
class ContactExt extends CakeTestModel {
201199

Test/Case/View/Helper/QrCodeHelperTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
/**
1717
* QrCode Test Case
1818
*
19-
* @package cake.tests
20-
* @subpackage cake.tests.cases.libs.view.helpers
2119
*/
2220
class QrCodeHelperTest extends MyCakeTestCase {
2321
/**
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php
2+
3+
App::uses('TimelineHelper', 'Tools.View/Helper');
4+
App::uses('MyCakeTestCase', 'Tools.TestSuite');
5+
App::uses('HtmlHelper', 'View/Helper');
6+
App::uses('View', 'View');
7+
8+
/**
9+
* Timeline Helper Test Case
10+
*/
11+
class TimelineHelperTest extends MyCakeTestCase {
12+
13+
public $Timeline;
14+
15+
/**
16+
* TimelineHelperTest::setUp()
17+
*
18+
* @return void
19+
*/
20+
public function setUp() {
21+
parent::setUp();
22+
23+
$this->Timeline = new TimelineTestHelper(new View(null));
24+
$this->Timeline->Html = new HtmlHelper(new View(null));
25+
}
26+
27+
/**
28+
* @return void
29+
*/
30+
public function testAddItem() {
31+
$data = array(
32+
'start' => '',
33+
'content' => '',
34+
);
35+
$this->Timeline->addItem($data);
36+
$items = $this->Timeline->items();
37+
$this->assertSame(1, count($items));
38+
39+
$data = array(
40+
array(
41+
'start' => '',
42+
'content' => '',
43+
),
44+
array(
45+
'start' => '',
46+
'content' => '',
47+
)
48+
);
49+
$this->Timeline->addItems($data);
50+
$items = $this->Timeline->items();
51+
$this->assertSame(3, count($items));
52+
}
53+
54+
public function tearDown() {
55+
parent::tearDown();
56+
57+
unset($this->Timeline);
58+
}
59+
60+
}
61+
62+
class TimelineTestHelper extends TimelineHelper {
63+
64+
/**
65+
* @return array
66+
*/
67+
public function items() {
68+
return $this->_items;
69+
}
70+
71+
}

Test/Fixture/MessageFixture.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*
1414
* @copyright Copyright (c) 2008, Andy Dawson
1515
* @link www.ad7six.com
16-
* @package mi
17-
* @subpackage mi.tests.fixtures
1816
* @since v 1.0
1917
* @modifiedBy $LastChangedBy$
2018
* @lastModified $Date$

0 commit comments

Comments
 (0)