Skip to content
Permalink
Browse files

update namespaces

  • Loading branch information...
antograssiot committed Sep 16, 2014
1 parent 0dc1e77 commit 629d8245f923b6292e5689f356b733ddd9d3ffb8
@@ -16,7 +16,7 @@
use Cake\Auth\AbstractPasswordHasher;
use Cake\Core\Configure;
use Cake\Utility\Debugger;
use Cake\Error\Debugger;
use Cake\Utility\Security;
/**
@@ -16,7 +16,7 @@
use Cake\Controller\Component;
use Cake\Controller\ComponentRegistry;
use Cake\Error\InternalErrorException;
use Cake\Network\Exception\InternalErrorException;
use Cake\Utility\Inflector;
/**
@@ -106,7 +106,7 @@ public function set($message, array $options = []) {
* @param string $name Element name to use.
* @param array $args Parameters to pass when calling `FlashComponent::set()`.
* @return void
* @throws \Cake\Error\InternalErrorException If missing the flash message.
* @throws \Cake\Network\Exception\InternalErrorException If missing the flash message.
*/
public function __call($name, $args) {
$options = ['element' => Inflector::underscore($name)];
@@ -52,7 +52,7 @@ public function find($type = 'all', $options = []);
*
* @param mixed $primaryKey primary key value to find
* @param array|\ArrayAccess $options options accepted by `Table::find()`
* @throws \Cake\ORM\Error\RecordNotFoundException if the record with such id
* @throws \Cake\ORM\Exception\RecordNotFoundException if the record with such id
* could not be found
* @return \Cake\Datasource\EntityInterface
* @see RepositoryInterface::find()
@@ -471,7 +471,7 @@ protected function _removeFromTree($node) {
*
* @param \Cake\ORM\Entity $node The node to move
* @param int|bool $number How many places to move the node, or true to move to first position
* @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
* @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
* @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
*/
public function moveUp(Entity $node, $number = 1) {
@@ -486,7 +486,7 @@ public function moveUp(Entity $node, $number = 1) {
*
* @param \Cake\ORM\Entity $node The node to move
* @param int|bool $number How many places to move the node, or true to move to first position
* @throws \Cake\ORM\Error\RecordNotFoundException When node was not found
* @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
* @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
*/
protected function _moveUp($node, $number) {
@@ -19,10 +19,10 @@
use Cake\Cache\Cache;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Filesystem\Folder;
use Cake\Log\Log;
use Cake\Network\Response;
use Cake\TestSuite\TestCase;
use Cake\Utility\Folder;
require_once CAKE . 'basics.php';
@@ -17,11 +17,11 @@
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Filesystem\File;
use Cake\Log\Log;
use Cake\Network\Email\DebugTransport;
use Cake\Network\Email\Email;
use Cake\TestSuite\TestCase;
use Cake\Utility\File;
use Cake\View\Exception\MissingViewException;
/**
@@ -2229,7 +2229,7 @@ public function testAllowMethodException() {
$this->assertEquals(array('Allow' => 'POST, DELETE'), $e->responseHeader());
}
$this->setExpectedException('Cake\Error\MethodNotAllowedException');
$this->setExpectedException('Cake\Network\Exception\MethodNotAllowedException');
$request->allowMethod('POST');
}

0 comments on commit 629d824

Please sign in to comment.
You can’t perform that action at this time.