|
@@ -68,6 +68,7 @@ class ContextTest extends \PHPUnit_Framework_TestCase
|
68
|
68
|
$this->assertFalse($secutiry_context->canMakeAction(SecurityContext::ACTION_GROUP_ADD));
|
69
|
69
|
$this->assertFalse($secutiry_context->canMakeAction(SecurityContext::ACTION_USER_FOLLOW));
|
70
|
70
|
$this->assertFalse($secutiry_context->canMakeAction(SecurityContext::ACTION_ELEMENT_ADD_TO_FAVORITES));
|
|
71
|
+ $this->assertFalse($secutiry_context->canMakeAction(SecurityContext::ACTION_GET_FAVORITES_TAGS));
|
71
|
72
|
|
72
|
73
|
$this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_ELEMENT_ADD));
|
73
|
74
|
$this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_ELEMENT_NOTE));
|
|
@@ -79,6 +80,7 @@ class ContextTest extends \PHPUnit_Framework_TestCase
|
79
|
80
|
$this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_ELEMENT_TAGS_PROPOSITION));
|
80
|
81
|
$this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_GROUP_ADD));
|
81
|
82
|
$this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_ELEMENT_ADD_TO_FAVORITES));
|
|
83
|
+ $this->assertEquals('UserNotConnected', $secutiry_context->actionIsAffectedBy(SecurityContext::AFFECT_CANT_MAKE, SecurityContext::ACTION_GET_FAVORITES_TAGS));
|
82
|
84
|
}
|
83
|
85
|
|
84
|
86
|
}
|