Issue #2015849 by mrjmd, yaworsk, YesCT: Comment standards fixes in entity tests

8.0.x
Jennifer Hodgdon 2014-05-22 08:58:49 -07:00
parent 5a3ef30631
commit b78effb9b3
2 changed files with 5 additions and 6 deletions

View File

@ -104,8 +104,7 @@ class EntityApiTest extends EntityUnitTestBase {
} }
/** /**
* Tests that exceptions are properly thrown when saving or deleting an * Tests that exceptions are thrown when saving or deleting an entity.
* entity.
*/ */
public function testEntityStorageExceptionHandling() { public function testEntityStorageExceptionHandling() {
$entity = entity_create('entity_test', array('name' => 'test')); $entity = entity_create('entity_test', array('name' => 'test'));

View File

@ -110,7 +110,7 @@ function entity_test_create_bundle($bundle, $text = NULL, $entity_type = 'entity
* @param string $bundle_old * @param string $bundle_old
* The machine-readable name of the bundle to rename. * The machine-readable name of the bundle to rename.
* @param string $bundle_new * @param string $bundle_new
* The new machine-readable name of the bundle * The new machine-readable name of the bundle.
* @param string $entity_type * @param string $entity_type
* (optional) The entity type for which the bundle is renamed. Defaults to * (optional) The entity type for which the bundle is renamed. Defaults to
* 'entity_test'. * 'entity_test'.
@ -203,7 +203,7 @@ function entity_test_entity_extra_field_info() {
'display' => array( 'display' => array(
// Note: those extra fields do not currently display anything, they are // Note: those extra fields do not currently display anything, they are
// just used in \Drupal\entity\Tests\EntityDisplayTest to test the // just used in \Drupal\entity\Tests\EntityDisplayTest to test the
// behavior of entity display objects, // behavior of entity display objects.
'display_extra_field' => array( 'display_extra_field' => array(
'label' => t('Display extra field'), 'label' => t('Display extra field'),
'description' => t('An extra field on the display side.'), 'description' => t('An extra field on the display side.'),
@ -360,7 +360,7 @@ function entity_test_entity_form_display_alter(EntityFormDisplay $form_display,
} }
/** /**
* Implements hook_entity_presave() * Implements hook_entity_presave().
*/ */
function entity_test_entity_presave(EntityInterface $entity) { function entity_test_entity_presave(EntityInterface $entity) {
if (isset($GLOBALS['entity_test_throw_exception'])) { if (isset($GLOBALS['entity_test_throw_exception'])) {
@ -369,7 +369,7 @@ function entity_test_entity_presave(EntityInterface $entity) {
} }
/** /**
* Implements hook_entity_predelete() * Implements hook_entity_predelete().
*/ */
function entity_test_entity_predelete(EntityInterface $entity) { function entity_test_entity_predelete(EntityInterface $entity) {
if (isset($GLOBALS['entity_test_throw_exception'])) { if (isset($GLOBALS['entity_test_throw_exception'])) {