Commit Graph

33 Commits

Author SHA1 Message Date
Alexander Makarov
d7a251bbec Removed unused imports, added missing phpdoc 2014-05-30 11:55:17 +06:00
Alexander Makarov
8077ea3f70 Silenced migrations output in rbac test in case there's no error 2014-05-07 03:11:35 +04:00
Alexander Makarov
f11d608936 Re-init application if it was destroyed during RBAC test 2014-05-07 01:50:58 +04:00
Alexander Makarov
440c402bde Simplified RBAC DB manager test 2014-05-07 01:03:44 +04:00
Alexander Makarov
ef4d9683ce Fixed RBAC migration for SQLite 2014-05-07 00:52:56 +04:00
Alexander Makarov
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
Alexander Makarov
12732cfa53 Fixed rbac tests to use migration 2014-05-06 21:02:35 +04:00
Qiang Xue
14b782cf01 Added $user as the first parameter of yii\rbac\Rule::execute() 2014-04-16 21:52:46 -04:00
tof06
22596ca248 Implement new RBAC PhpManager 2014-04-15 16:10:04 +02:00
Qiang Xue
8fbe10acfd removed PhpManagerTest 2014-04-12 17:08:49 -04:00
Qiang Xue
7bc52f32a4 Re-implemented RBAC by following more closely to the original NIST RBAC model. Dropped yii\rbac\PhpManager. 2014-04-12 16:55:50 -04:00
Alexander Makarov
40eb116640 Splitted saveRule into insertRule and updateRule 2014-04-04 23:09:34 +04:00
Alexander Makarov
f3dd74ff97 Removed custom Rule constructor 2014-04-04 22:43:11 +04:00
Alexander Makarov
5e278025b1 Removed test entries for MSSQL, Oracle 2014-04-04 20:54:16 +04:00
Alexander Makarov
2c28198cd2 Fixes #499: Decoupled Rule from RBAC Item 2014-04-04 20:13:26 +04:00
Alexander Makarov
0e6cbda43e RBAC: decoupled rules from assignments and items, implemented php manager 2014-04-04 04:40:06 +04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
ecc066ac34 fixed condition for HHVM test 2014-03-05 02:35:37 +01:00
Carsten Brandt
614ac19c5c exclude test with invalid PHP code from HHVM 2014-02-08 10:50:21 +01:00
Panagiotis Moustafellos
e16fb9596b indentation fix 2013-11-23 18:21:26 +02:00
Panagiotis Moustafellos
820f840ce3 added revokeAll() test 2013-11-23 15:30:15 +02:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
Alexander Makarov
7cd9123c3b Tests cleanup
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00
Carsten Brandt
a77bfea21d Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (31 commits)
  Finished bootstrap Widget and Modal.
  PHP Intl extension has been added to default Yii requirements.
  moved optional packages to "suggest", updated platform requirements
  "vendor-dir": "vendor" is default, removed
  Fixes issue #320: Module::createController() will fail with a route with trailing slash.
  Fixed test break about AssetController.
  requirements css.php twitter bootstrap update to 2.3.2
  Twitter bootstrap updated to 2.3.2
  Modified the IAssetConvert interface.
  hashing the key for registerCss and registerJs.
  Update AccessRule.php
  refactored code after feedback
  Fixed framework path.
  Added support for View::POS_READY.
  new proposed structure
  remove from master (update track)
  minor fixes
  updated the README file of the bootstrap app.
  Inflector class
  readjusting files for the framework package.
  ...
2013-05-20 22:40:20 +02:00
Klimov Paul
d4b896f65c "ManagerTestBase::testExecuteBizRule()" has been fixed to not produce side effects on other tests. 2013-05-18 17:28:28 +03:00
Carsten Brandt
285a45520c fixed auth manager unit test to not expect generic exception
This is not allowed by phpunit as a test may not fail anymore
2013-05-18 13:41:09 +02:00
Qiang Xue
23e820e6bd Merge pull request #229 from creocoder/rbac-item-assignment-improve
RBAC: Item and Assignment optimized save approach
2013-05-11 16:38:12 -07:00
Carsten Brandt
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +02:00
resurtm
ea68bd3a55 CS fixes. 2013-05-11 15:58:27 +06:00
Alexander Kochetov
af3f5af3be RBAC: Item and Assignment optimized save approach 2013-05-11 09:24:02 +04:00
Alexander Kochetov
4b8bcd43e0 Unit tests fix 2013-05-10 16:18:01 +04:00
Alexander Kochetov
bea449f8a0 Unit tests 2013-05-10 16:11:04 +04:00