Carsten Brandt
f4a9646a22
more on HHVM compatibility
10 years ago
Qiang Xue
5046e687e1
fixed random rbac testing failure.
10 years ago
Alexander Makarov
cadbbd813f
Reduced gap between setting and checking mtime
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
1dad82a0f6
avoid random test break
10 years ago
Alexander Makarov
c6569b1abe
Removed unnecessary code
10 years ago
Carsten Brandt
74c99dc959
code style + test groups
10 years ago
Carsten Brandt
9e62d5589a
added unit test for #4489
10 years ago
Alexander Makarov
d1ccb92a34
Fixes #4489 : RBAC PhpManager wasn't saving multiple assignmentsFixes #4489 : RBAC PhpManager wasn't saving multiple assignments properly
10 years ago
Alexander Makarov
c68e5f1fdb
Adjusted naming
10 years ago
Alexander Makarov
3eee7b8e4b
Fixes #4072 : `\yii\rbac\PhpManager` adjustments
...
- Data is now stored in three separate files for items, assignments and rules. File format is simpler.
- Removed `authFile`. Added `itemsFile`, `assignmentsFile` and `rulesFile`.
- `createdAt` and `updatedAt` are now properly filled with corresponding file modification time.
- `save()` and `load()` are now protected instead of public.
- Added unit test for saving and loading data.
10 years ago
Carsten Brandt
1a7b4c5383
added testcase of @UncleCoder
...
e43c503c2d
issue #3817
10 years ago
Alexander Makarov
d7a251bbec
Removed unused imports, added missing phpdoc
10 years ago
Alexander Makarov
8077ea3f70
Silenced migrations output in rbac test in case there's no error
11 years ago
Alexander Makarov
f11d608936
Re-init application if it was destroyed during RBAC test
11 years ago
Alexander Makarov
440c402bde
Simplified RBAC DB manager test
11 years ago
Alexander Makarov
ef4d9683ce
Fixed RBAC migration for SQLite
11 years ago
Alexander Makarov
905e39ede9
RBAC migration is now aware of custom table names, speeded up RBAC tests
11 years ago
Alexander Makarov
12732cfa53
Fixed rbac tests to use migration
11 years ago
Qiang Xue
14b782cf01
Added `$user` as the first parameter of `yii\rbac\Rule::execute()`
11 years ago
tof06
22596ca248
Implement new RBAC PhpManager
11 years ago
Qiang Xue
8fbe10acfd
removed PhpManagerTest
11 years ago
Qiang Xue
7bc52f32a4
Re-implemented RBAC by following more closely to the original NIST RBAC model. Dropped `yii\rbac\PhpManager`.
11 years ago
Alexander Makarov
40eb116640
Splitted saveRule into insertRule and updateRule
11 years ago
Alexander Makarov
f3dd74ff97
Removed custom Rule constructor
11 years ago
Alexander Makarov
5e278025b1
Removed test entries for MSSQL, Oracle
11 years ago
Alexander Makarov
2c28198cd2
Fixes #499 : Decoupled `Rule` from RBAC `Item`
11 years ago
Alexander Makarov
0e6cbda43e
RBAC: decoupled rules from assignments and items, implemented php manager
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
ecc066ac34
fixed condition for HHVM test
11 years ago
Carsten Brandt
614ac19c5c
exclude test with invalid PHP code from HHVM
11 years ago
Panagiotis Moustafellos
e16fb9596b
indentation fix
11 years ago
Panagiotis Moustafellos
820f840ce3
added revokeAll() test
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Alexander Makarov
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
12 years ago
Klimov Paul
d4b896f65c
"ManagerTestBase::testExecuteBizRule()" has been fixed to not produce side effects on other tests.
12 years ago
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
12 years ago
Carsten Brandt
cb8f5d702f
cleanup tests
12 years ago
resurtm
ea68bd3a55
CS fixes.
12 years ago
Alexander Kochetov
af3f5af3be
RBAC: Item and Assignment optimized save approach
12 years ago
Alexander Kochetov
4b8bcd43e0
Unit tests fix
12 years ago
Alexander Kochetov
bea449f8a0
Unit tests
12 years ago