-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,26 @@ | |
|
||
namespace Phalcon\Test\Unit\Firewall\Adapter\Micro\Acl; | ||
|
||
use Phalcon\Acl as PhAcl; | ||
use Phalcon\Firewall\Adapter\Micro\Acl; | ||
use UnitTester; | ||
|
||
class GetDefaultAccessCest | ||
class GetSetDefaultAccessCest | ||
{ | ||
/** | ||
* Tests Phalcon\Firewall\Adapter\Micro\Acl :: getDefaultAccess() | ||
* Tests Phalcon\Firewall\Adapter\Micro\Acl :: getDefaultAccess()/setDefaultAccess() | ||
* | ||
* @author Phalcon Team <[email protected]> | ||
* @since 2019-05-12 | ||
*/ | ||
public function firewallAdapterMicroAclGetDefaultAccess(UnitTester $I) | ||
public function firewallAdapterMicroAclGetSetDefaultAccess(UnitTester $I) | ||
{ | ||
$I->wantToTest('Firewall\Adapter\Micro\Acl - getDefaultAccess()'); | ||
$I->wantToTest('Firewall\Adapter\Micro\Acl - getDefaultAccess()/setDefaultAccess()'); | ||
|
||
$I->skipTest('Need implementation'); | ||
$firewall = new Acl('acl'); | ||
$firewall->setDefaultAccess(PhAcl::ALLOW); | ||
|
||
$actual = $firewall->getDefaultAccess(); | ||
$I->assertEquals(PhAcl::ALLOW, $actual); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,28 @@ | |
|
||
namespace Phalcon\Test\Unit\Firewall\Adapter\Micro\Acl; | ||
|
||
use Phalcon\Events\Manager; | ||
use Phalcon\Firewall\Adapter\Micro\Acl; | ||
use UnitTester; | ||
|
||
class GetEventsManagerCest | ||
class GetSetEventsManagerCest | ||
{ | ||
/** | ||
* Tests Phalcon\Firewall\Adapter\Micro\Acl :: getEventsManager() | ||
* Tests Phalcon\Firewall\Adapter\Micro\Acl :: getEventsManager()/setEventsManager() | ||
* | ||
* @author Phalcon Team <[email protected]> | ||
* @since 2019-05-12 | ||
*/ | ||
public function firewallAdapterMicroAclGetEventsManager(UnitTester $I) | ||
public function firewallAdapterMicroAclGetSetEventsManager(UnitTester $I) | ||
{ | ||
$I->wantToTest('Firewall\Adapter\Micro\Acl - getEventsManager()'); | ||
$I->wantToTest('Firewall\Adapter\Micro\Acl - getEventsManager()/setEventsManager()'); | ||
|
||
$I->skipTest('Need implementation'); | ||
$firewall = new Acl('acl'); | ||
$eventsManager = new Manager(); | ||
|
||
$firewall->setEventsManager($eventsManager); | ||
|
||
$actual = $firewall->getEventsManager(); | ||
$I->assertEquals($eventsManager, $actual); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
tests/unit/Firewall/Adapter/Micro/Acl/SetDefaultAccessCest.php
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
tests/unit/Firewall/Adapter/Micro/Acl/SetEventsManagerCest.php
This file was deleted.
Oops, something went wrong.