Loading core/modules/system/tests/modules/test_user_config/test_user_config.info.yml +2 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,5 @@ package: Testing version: VERSION dependencies: - drupal:user - drupal:field - drupal:image core/modules/user/tests/src/Functional/UserPictureTest.php +11 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\user\Functional; use Drupal\comment\Tests\CommentTestTrait; use Drupal\Core\Database\Database; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\StreamWrapper\StreamWrapperManager; Loading @@ -20,16 +21,16 @@ class UserPictureTest extends BrowserTestBase { use TestFileCreationTrait { getTestFiles as drupalGetTestFiles; } use CommentTestTrait; /** * The profile to install as a basis for testing. * * Using the standard profile to test user picture config provided by the * standard profile. * * @var string * {@inheritdoc} */ protected $profile = 'standard'; protected static $modules = [ 'test_user_config', 'node', 'comment', ]; /** * {@inheritdoc} Loading Loading @@ -108,6 +109,9 @@ public function testCreateDeletePicture() { public function testPictureOnNodeComment() { $this->drupalLogin($this->webUser); $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); $this->addDefaultCommentField('node', 'article'); // Save a new picture. $image = current($this->drupalGetTestFiles('image')); $file = $this->saveUserPicture($image); Loading Loading
core/modules/system/tests/modules/test_user_config/test_user_config.info.yml +2 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,5 @@ package: Testing version: VERSION dependencies: - drupal:user - drupal:field - drupal:image
core/modules/user/tests/src/Functional/UserPictureTest.php +11 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\user\Functional; use Drupal\comment\Tests\CommentTestTrait; use Drupal\Core\Database\Database; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\StreamWrapper\StreamWrapperManager; Loading @@ -20,16 +21,16 @@ class UserPictureTest extends BrowserTestBase { use TestFileCreationTrait { getTestFiles as drupalGetTestFiles; } use CommentTestTrait; /** * The profile to install as a basis for testing. * * Using the standard profile to test user picture config provided by the * standard profile. * * @var string * {@inheritdoc} */ protected $profile = 'standard'; protected static $modules = [ 'test_user_config', 'node', 'comment', ]; /** * {@inheritdoc} Loading Loading @@ -108,6 +109,9 @@ public function testCreateDeletePicture() { public function testPictureOnNodeComment() { $this->drupalLogin($this->webUser); $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); $this->addDefaultCommentField('node', 'article'); // Save a new picture. $image = current($this->drupalGetTestFiles('image')); $file = $this->saveUserPicture($image); Loading