.../edit/Tests/edit/Access/EditEntityAccessCheckTest.php | 6 +++--- .../Tests/edit/Access/EditEntityFieldAccessCheckTest.php | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityAccessCheckTest.php b/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityAccessCheckTest.php index 12b28e6..de50fbf 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityAccessCheckTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityAccessCheckTest.php @@ -112,7 +112,7 @@ public function providerTestAccess() { * @dataProvider providerTestAccess */ public function testAccess(EntityInterface $entity, $expected_result) { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity' => 'TRUE')); $request = new Request(); // Prepare the request to be valid. @@ -129,7 +129,7 @@ public function testAccess(EntityInterface $entity, $expected_result) { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithUndefinedEntityType() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'non_valid'); @@ -147,7 +147,7 @@ public function testAccessWithUndefinedEntityType() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithNotExistingEntity() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test'); $request->attributes->set('entity', 1); diff --git a/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityFieldAccessCheckTest.php b/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityFieldAccessCheckTest.php index 200d854..962b9ed 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityFieldAccessCheckTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/edit/Access/EditEntityFieldAccessCheckTest.php @@ -143,7 +143,7 @@ public function providerTestAccess() { * @dataProvider providerTestAccess */ public function testAccess(EntityInterface $entity, FieldInterface $field = NULL, $expected_result) { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $this->fieldInfo->expects($this->any()) @@ -174,7 +174,7 @@ public function testAccess(EntityInterface $entity, FieldInterface $field = NULL * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithUndefinedEntityType() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'non_valid'); @@ -192,7 +192,7 @@ public function testAccessWithUndefinedEntityType() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithNotExistingEntity() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test'); $request->attributes->set('entity', 1); @@ -216,7 +216,7 @@ public function testAccessWithNotExistingEntity() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithNotPassedFieldName() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test'); @@ -235,7 +235,7 @@ public function testAccessWithNotPassedFieldName() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithNonExistingField() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test'); @@ -266,7 +266,7 @@ public function testAccessWithNonExistingField() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithNotPassedLanguage() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test'); @@ -294,7 +294,7 @@ public function testAccessWithNotPassedLanguage() { * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function testAccessWithInvalidLanguage() { - $route = new Route('/edit/form/node/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); + $route = new Route('/edit/form/test_entity/1/body/und/full', array(), array('_access_edit_entity_field' => 'TRUE')); $request = new Request(); $request->attributes->set('entity_type', 'entity_test');