Browse Source

Update / fix test cases.

ADmad 11 years ago
parent
commit
49a9147a78

+ 1 - 0
tests/TestCase/Auth/WeakPasswordHasherTest.php

@@ -15,6 +15,7 @@
 namespace Cake\Test\TestCase\Auth;
 
 use Cake\Auth\WeakPasswordHasher;
+use Cake\Core\Configure;
 use Cake\TestSuite\TestCase;
 
 /**

+ 0 - 20
tests/TestCase/Controller/Component/AuthComponentTest.php

@@ -1045,26 +1045,6 @@ class AuthComponentTest extends TestCase {
 	}
 
 /**
- * test mapActions loading and delegating to authorize objects.
- *
- * @return void
- */
-	public function testMapActionsDelegation() {
-		$MapActionMockAuthorize = $this->getMock(
-			'Cake\Controller\Component\Auth\BaseAuthorize',
-			array('authorize', 'mapActions'), array(), '', false
-		);
-
-		$this->Auth->authorize = array('MapActionMock');
-		$this->Auth->setAuthorizeObject(0, $MapActionMockAuthorize);
-		$MapActionMockAuthorize->expects($this->once())
-			->method('mapActions')
-			->with(array('create' => array('my_action')));
-
-		$this->Auth->mapActions(array('create' => array('my_action')));
-	}
-
-/**
  * test setting user info to session.
  *
  * @return void