Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/tests/src/Functional/UserTranslationUITest.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
73 $this->assertRaw($title); | 73 $this->assertRaw($title); |
74 } | 74 } |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 /** | |
79 * Test translated user deletion. | |
80 */ | |
81 public function testTranslatedUserDeletion() { | |
82 $this->drupalLogin($this->administrator); | |
83 $entity_id = $this->createEntity($this->getNewEntityValues('en'), 'en'); | |
84 | |
85 $entity = $this->container->get('entity_type.manager') | |
86 ->getStorage($this->entityTypeId) | |
87 ->load($entity_id); | |
88 $translated_entity = $entity->addTranslation('fr'); | |
89 $translated_entity->save(); | |
90 | |
91 $url = $entity->toUrl( | |
92 'edit-form', | |
93 ['language' => $this->container->get('language_manager')->getLanguage('en')] | |
94 ); | |
95 $this->drupalPostForm($url, [], t('Cancel account')); | |
96 $this->assertSession()->statusCodeEquals(200); | |
97 } | |
98 | |
78 } | 99 } |