@@ -80,7 +80,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {
$this->assertEqualsCanonicalizing($permissions,$converted,'Updated anonymous permissions are returned per group type.');
$this->assertSame([],$calculated_permissions->getCacheContexts(),'Updated anonymous permissions have the right cache contexts.');
$this->assertSame(-1,$calculated_permissions->getCacheMaxAge(),'Updated anonymous permissions have the right max cache age.');
$this->assertSame($cache_tags,$calculated_permissions->getCacheTags(),'Updated anonymous permissions have the right cache tags.');
$this->assertEqualsCanonicalizing($cache_tags,$calculated_permissions->getCacheTags(),'Updated anonymous permissions have the right cache tags.');
$this->createGroupType(['id'=>'test']);
$permissions['test']=[];
@@ -92,7 +92,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {
$this->assertEqualsCanonicalizing($permissions,$converted,'Anonymous permissions are updated after introducing a new group type.');
$this->assertSame([],$calculated_permissions->getCacheContexts(),'Anonymous permissions have the right cache contexts after introducing a new group type.');
$this->assertSame(-1,$calculated_permissions->getCacheMaxAge(),'Anonymous permissions have the right max cache age after introducing a new group type.');
$this->assertSame($cache_tags,$calculated_permissions->getCacheTags(),'Anonymous permissions have the right cache tags after introducing a new group type.');
$this->assertEqualsCanonicalizing($cache_tags,$calculated_permissions->getCacheTags(),'Anonymous permissions have the right cache tags after introducing a new group type.');
}
/**
@@ -123,7 +123,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {
$this->assertEqualsCanonicalizing($permissions,$converted,'Updated synchronized outsider permissions are returned per group type.');
$this->assertSame(-1,$calculated_permissions->getCacheMaxAge(),'Updated synchronized outsider permissions have the right max cache age.');
$this->assertSame($cache_tags,$calculated_permissions->getCacheTags(),'Updated synchronized outsider permissions have the right cache tags.');
$this->assertEqualsCanonicalizing($cache_tags,$calculated_permissions->getCacheTags(),'Updated synchronized outsider permissions have the right cache tags.');
$this->createGroupType(['id'=>'test']);
$permissions['test']=[];
@@ -155,7 +155,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {
$this->assertEqualsCanonicalizing($permissions,$converted,'Outsider permissions are updated after introducing a new group type.');
$this->assertSame(-1,$calculated_permissions->getCacheMaxAge(),'Outsider permissions have the right max cache age after introducing a new group type.');
$this->assertSame($cache_tags,$calculated_permissions->getCacheTags(),'Outsider permissions have the right cache tags after introducing a new group type.');
$this->assertEqualsCanonicalizing($cache_tags,$calculated_permissions->getCacheTags(),'Outsider permissions have the right cache tags after introducing a new group type.');
}
/**
@@ -176,7 +176,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {
$this->assertEqualsCanonicalizing($permissions,$converted,'Member permissions are returned per group ID after joining a group.');
$this->assertSame(-1,$calculated_permissions->getCacheMaxAge(),'Member permissions have the right max cache age after joining a group.');
$this->assertSame($cache_tags,$calculated_permissions->getCacheTags(),'Member permissions have the right cache tags after joining a group.');
$this->assertEqualsCanonicalizing($cache_tags,$calculated_permissions->getCacheTags(),'Member permissions have the right cache tags after joining a group.');
// @todo This displays a desperate need for addRole() and removeRole().
$membership=$member->getGroupContent();
@@ -204,7 +204,7 @@ class ChainGroupPermissionCalculatorTest extends GroupKernelTestBase {