diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php index fd91f2c..62b0bf8 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php @@ -55,7 +55,7 @@ function setupBundle() { * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::getTranslatorPermission(). */ protected function getTranslatorPermissions() { - return array_merge(parent::getTranslatorPermissions(), array('post comments', 'administer comments')); + return array_merge(parent::getTranslatorPermissions(), array('post comments', 'administer comments', 'access comments')); } /** diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUriTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUriTest.php index 0731272..ca3d040 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUriTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUriTest.php @@ -30,10 +30,10 @@ public function setUp() { */ function testDefaultUri() { // Create a test entity. - $entity = entity_create('entity_test', array('name' => 'test', 'user_id' => 1)); + $entity = entity_create('entity_test_no_uri', array('name' => 'test', 'user_id' => 1)); $entity->save(); $uri = $entity->uri(); - $expected_path = 'entity/entity_test/' . $entity->id(); + $expected_path = 'entity/entity_test_no_uri/' . $entity->id(); $this->assertEqual(url($uri['path'], $uri['options']), url($expected_path), 'Entity without URI callback returns expected URI.'); } diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoUri.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoUri.php new file mode 100644 index 0000000..0142515 --- /dev/null +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoUri.php @@ -0,0 +1,40 @@ +