mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
Fixing svn props on files.
Renamed sessionHelper.ctp Fixed test case with proper layout name git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6880 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fc6934e988
commit
9d9d69d194
14 changed files with 58 additions and 58 deletions
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: testsuite.php 6730 2008-04-23 18:25:03Z DarkAngelBGE $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Test Suite Shell
|
* Test Suite Shell
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake
|
* @package cake
|
||||||
* @subpackage cake.cake.console.libs
|
* @subpackage cake.cake.console.libs
|
||||||
* @since CakePHP(tm) v 1.2.0.4433
|
* @since CakePHP(tm) v 1.2.0.4433
|
||||||
* @version $Revision: 6715 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: DarkAngelBGE $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-04-23 20:25:03 +0200 (Wed, 23 Apr 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
class TestSuiteShell extends Shell {
|
class TestSuiteShell extends Shell {
|
||||||
|
|
|
@ -40,7 +40,7 @@ App::import('Helper', array('Session'));
|
||||||
* @subpackage cake.tests.cases.libs.view.helpers
|
* @subpackage cake.tests.cases.libs.view.helpers
|
||||||
*/
|
*/
|
||||||
class SessionHelperTest extends CakeTestCase {
|
class SessionHelperTest extends CakeTestCase {
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
$this->Session = new SessionHelper();
|
$this->Session = new SessionHelper();
|
||||||
$this->Session->__start();
|
$this->Session->__start();
|
||||||
|
@ -54,7 +54,7 @@ class SessionHelperTest extends CakeTestCase {
|
||||||
'message' => 'This is a calling'
|
'message' => 'This is a calling'
|
||||||
),
|
),
|
||||||
'notification' => array(
|
'notification' => array(
|
||||||
'layout' => 'sessionHelper',
|
'layout' => 'session_helper',
|
||||||
'params' => array('title' => 'Notice!', 'name' => 'Alert!'),
|
'params' => array('title' => 'Notice!', 'name' => 'Alert!'),
|
||||||
'message' => 'This is a test of the emergency broadcasting system',
|
'message' => 'This is a test of the emergency broadcasting system',
|
||||||
),
|
),
|
||||||
|
@ -69,10 +69,10 @@ class SessionHelperTest extends CakeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
$_SESSION = array();
|
$_SESSION = array();
|
||||||
unset($this->Session);
|
unset($this->Session);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testRead() {
|
function testRead() {
|
||||||
$result = $this->Session->read('Deeply.nested.key');
|
$result = $this->Session->read('Deeply.nested.key');
|
||||||
$this->assertEqual($result, 'value');
|
$this->assertEqual($result, 'value');
|
||||||
|
@ -80,7 +80,7 @@ class SessionHelperTest extends CakeTestCase {
|
||||||
$result = $this->Session->read('test');
|
$result = $this->Session->read('test');
|
||||||
$this->assertEqual($result, 'info');
|
$this->assertEqual($result, 'info');
|
||||||
}
|
}
|
||||||
|
|
||||||
function testCheck() {
|
function testCheck() {
|
||||||
$this->assertTrue($this->Session->check('test'));
|
$this->assertTrue($this->Session->check('test'));
|
||||||
|
|
||||||
|
@ -90,26 +90,26 @@ class SessionHelperTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->assertFalse($this->Session->check('Nope'));
|
$this->assertFalse($this->Session->check('Nope'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function testWrite() {
|
function testWrite() {
|
||||||
$this->expectError();
|
$this->expectError();
|
||||||
$this->Session->write('NoWay', 'AccessDenied');
|
$this->Session->write('NoWay', 'AccessDenied');
|
||||||
}
|
}
|
||||||
|
|
||||||
function testFlash() {
|
function testFlash() {
|
||||||
ob_start();
|
ob_start();
|
||||||
$this->Session->flash();
|
$this->Session->flash();
|
||||||
$result = ob_get_contents();
|
$result = ob_get_contents();
|
||||||
ob_clean();
|
ob_clean();
|
||||||
|
|
||||||
$expected = '<div id="flashMessage" class="message">This is a calling</div>';
|
$expected = '<div id="flashMessage" class="message">This is a calling</div>';
|
||||||
$this->assertEqual($result, $expected);
|
$this->assertEqual($result, $expected);
|
||||||
$this->assertFalse($this->Session->check('Message.flash'));
|
$this->assertFalse($this->Session->check('Message.flash'));
|
||||||
|
|
||||||
Configure::write('viewPaths', array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS));
|
Configure::write('viewPaths', array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS));
|
||||||
$controller = new Controller();
|
$controller = new Controller();
|
||||||
$this->Session->view = new View($controller);
|
$this->Session->view = new View($controller);
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
$this->Session->flash('notification');
|
$this->Session->flash('notification');
|
||||||
$result = ob_get_contents();
|
$result = ob_get_contents();
|
||||||
|
|
8
cake/tests/fixtures/callback_fixture.php
vendored
8
cake/tests/fixtures/callback_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: callback_fixture.php 6354 2008-01-10 07:02:33Z nate $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 6354 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: nate $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-01-10 02:02:33 -0500 (Thu, 10 Jan 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
8
cake/tests/fixtures/data_test_fixture.php
vendored
8
cake/tests/fixtures/data_test_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: data_test_fixture.php 6354 2008-01-10 07:02:33Z nate $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.6700
|
* @since CakePHP(tm) v 1.2.0.6700
|
||||||
* @version $Revision: 6354 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: nate $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-01-10 02:02:33 -0500 (Thu, 10 Jan 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
8
cake/tests/fixtures/flag_tree_fixture.php
vendored
8
cake/tests/fixtures/flag_tree_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: flag_tree_fixture.php 6354 2008-01-10 07:02:33Z nate $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Tree behavior class test fixture.
|
* Tree behavior class test fixture.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.5331
|
* @since CakePHP(tm) v 1.2.0.5331
|
||||||
* @version $Revision: 6354 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: nate $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-01-10 02:02:33 -0500 (Thu, 10 Jan 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
8
cake/tests/fixtures/join_thing_fixture.php
vendored
8
cake/tests/fixtures/join_thing_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: join_thing_fixture.php 4860 2007-04-15 07:19:31Z phpnut $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 4860 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: phpnut $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2007-04-15 03:19:31 -0400 (Sun, 15 Apr 2007) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: something_else_fixture.php 4860 2007-04-15 07:19:31Z phpnut $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 4860 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: phpnut $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2007-04-15 03:19:31 -0400 (Sun, 15 Apr 2007) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
8
cake/tests/fixtures/something_fixture.php
vendored
8
cake/tests/fixtures/something_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: something_fixture.php 4860 2007-04-15 07:19:31Z phpnut $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 4860 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: phpnut $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2007-04-15 03:19:31 -0400 (Sun, 15 Apr 2007) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: the_paper_monkies_fixture.php 6296 2008-01-01 22:18:17Z nate $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 6296 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: phpnut $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-01-01 17:18:17 -0500 (Tue, 01 Jan 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.4667
|
* @since CakePHP(tm) v 1.2.0.4667
|
||||||
* @version $Revision: 6571 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: nate $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-03-15 01:08:06 -0400 (Sat, 15 Mar 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
class UnderscoreFieldFixture extends CakeTestFixture {
|
class UnderscoreFieldFixture extends CakeTestFixture {
|
||||||
|
|
8
cake/tests/fixtures/uuid_fixture.php
vendored
8
cake/tests/fixtures/uuid_fixture.php
vendored
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: uuid_fixture.php 6354 2008-01-10 07:02:33Z nate $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake.tests
|
* @package cake.tests
|
||||||
* @subpackage cake.tests.fixtures
|
* @subpackage cake.tests.fixtures
|
||||||
* @since CakePHP(tm) v 1.2.0.6700
|
* @since CakePHP(tm) v 1.2.0.6700
|
||||||
* @version $Revision: 6354 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: nate $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-01-10 02:02:33 -0500 (Thu, 10 Jan 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: code_coverage_manager.php 6527 2008-04-09 04:07:56Z DarkAngelBGE $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* A class to manage all aspects for Code Coverage Analysis
|
* A class to manage all aspects for Code Coverage Analysis
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake
|
* @package cake
|
||||||
* @subpackage cake.cake.tests.lib
|
* @subpackage cake.cake.tests.lib
|
||||||
* @since CakePHP(tm) v 1.2.0.4433
|
* @since CakePHP(tm) v 1.2.0.4433
|
||||||
* @version $Revision: 6527 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: gwoo $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-03-09 05:07:56 +0100 (Sun, 09 Mar 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
App::import('Core', 'Folder');
|
App::import('Core', 'Folder');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/* SVN FILE: $Id: simpletest.php 6488 2008-04-20 15:52:07Z DarkAngelBGE $ */
|
/* SVN FILE: $Id$ */
|
||||||
/**
|
/**
|
||||||
* Short description for file.
|
* Short description for file.
|
||||||
*
|
*
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* @package cake
|
* @package cake
|
||||||
* @subpackage cake.cake.tests.libs
|
* @subpackage cake.cake.tests.libs
|
||||||
* @since CakePHP(tm) v 1.2.0.4433
|
* @since CakePHP(tm) v 1.2.0.4433
|
||||||
* @version $Revision: 6488 $
|
* @version $Revision$
|
||||||
* @modifiedby $LastChangedBy: gwoo $
|
* @modifiedby $LastChangedBy$
|
||||||
* @lastmodified $Date: 2008-02-28 16:52:07 +0100 (Thu, 28 Feb 2008) $
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue