diff -u b/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php b/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php --- b/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php +++ b/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php @@ -171,7 +171,10 @@ /* @var \Drupal\Core\Entity\ContentEntityInterface $entity */ $entity = entity_load($job_item->getItemType(), $job_item->getItemId()); if (!$entity) { - $job_item->addMessage('The entity %id of type %type does not exist, the job can not be completed.', array('%id' => $job_item->getItemId(), '%type' => $job_item->getItemType()), 'error'); + $job_item->addMessage('The entity %id of type %type does not exist, the job can not be completed.', array( + '%id' => $job_item->getItemId(), + '%type' => $job_item->getItemType(), + ), 'error'); } else { $job = $job_item->getJob(); diff -u b/sources/content/src/Tests/ContentEntitySourceUiTest.php b/sources/content/src/Tests/ContentEntitySourceUiTest.php --- b/sources/content/src/Tests/ContentEntitySourceUiTest.php +++ b/sources/content/src/Tests/ContentEntitySourceUiTest.php @@ -170,10 +170,9 @@ $this->assertNoText($node_german->getTitle()); $this->assertText($node_not_translated->getTitle()); - // Test the translation of a deleted entity. + // Test that a job can not be accepted if the entity does not exist. $deleted_node = $this->createNode('page', 'en'); - $this->drupalGet('node/' . $deleted_node->id()); - $this->clickLink('Translate'); + $this->drupalGet('node/' . $deleted_node->id() . '/translations'); $edit = array( 'languages[de]' => TRUE, ); diff -u b/sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php b/sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php --- b/sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php +++ b/sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php @@ -205,7 +205,10 @@ $this->getMapper($job_item); } catch (TMGMTException $e) { - $job_item->addMessage('The entity %id of type %type does not exist, the job can not be completed.', array('%id' => $job_item->getItemId(), '%type' => $job_item->getItemType()), 'error'); + $job_item->addMessage('The entity %id of type %type does not exist, the job can not be completed.', array( + '%id' => $job_item->getItemId(), + '%type' => $job_item->getItemType(), + ), 'error'); return; } $config_mapper = $this->getMapper($job_item); diff -u b/sources/tmgmt_config/src/Tests/ConfigSourceUiTest.php b/sources/tmgmt_config/src/Tests/ConfigSourceUiTest.php --- b/sources/tmgmt_config/src/Tests/ConfigSourceUiTest.php +++ b/sources/tmgmt_config/src/Tests/ConfigSourceUiTest.php @@ -240,7 +240,7 @@ } $this->assertEqual($counter, 2); - // Test the translation of a deleted entity. + // Test that a job can not be accepted if the entity does not exist. $this->clickLink(t('Needs review')); // Delete the view and assert that the job can not be accepted.