mirror of
				https://github.com/brmlab/brmsklad.git
				synced 2025-10-31 00:03:58 +01:00 
			
		
		
		
	Upgrade CakePHP from 2.2.5 to 2.9.5
This commit is contained in:
		
							parent
							
								
									5a580df460
								
							
						
					
					
						commit
						235a541597
					
				
					 793 changed files with 60746 additions and 23753 deletions
				
			
		|  | @ -2,25 +2,24 @@ | |||
| /** | ||||
|  * ThemeViewTest file | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests | ||||
|  * @package       Cake.Test.Case.View | ||||
|  * @since         CakePHP(tm) v 1.2.0.4206 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| App::uses('View', 'View'); | ||||
| App::uses('ThemeView', 'View'); | ||||
| App::uses('Controller', 'Controller'); | ||||
| 
 | ||||
| 
 | ||||
| /** | ||||
|  * ThemePosts2Controller class | ||||
|  * | ||||
|  | @ -31,7 +30,7 @@ class ThemePosts2Controller extends Controller { | |||
| /** | ||||
|  * name property | ||||
|  * | ||||
|  * @var string 'ThemePosts' | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $name = 'ThemePosts'; | ||||
| 
 | ||||
|  | @ -213,7 +212,7 @@ class ThemeViewTest extends CakeTestCase { | |||
| 
 | ||||
| 		$View = new TestTheme2View($this->Controller); | ||||
| 		ob_start(); | ||||
| 		$result = $View->getViewFileName('does_not_exist'); | ||||
| 		$View->getViewFileName('does_not_exist'); | ||||
| 		$expected = ob_get_clean(); | ||||
| 		$this->assertRegExp("/PagesController::/", $expected); | ||||
| 		$this->assertRegExp("/views(\/|\\\)themed(\/|\\\)my_theme(\/|\\\)pages(\/|\\\)does_not_exist.ctp/", $expected); | ||||
|  | @ -234,7 +233,7 @@ class ThemeViewTest extends CakeTestCase { | |||
| 
 | ||||
| 		$View = new TestTheme2View($this->Controller); | ||||
| 		ob_start(); | ||||
| 		$result = $View->getLayoutFileName(); | ||||
| 		$View->getLayoutFileName(); | ||||
| 		$expected = ob_get_clean(); | ||||
| 		$this->assertRegExp("/Missing Layout/", $expected); | ||||
| 		$this->assertRegExp("/views(\/|\\\)themed(\/|\\\)my_theme(\/|\\\)layouts(\/|\\\)whatever.ctp/", $expected); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brm Ko
						Brm Ko